Diff
Differences From Artifact [a796fcaf0b]:
- File channels/file.py — part of check-in [5f1b889ce6] at 2015-05-05 14:11:26 on branch trunk — Add icon for file browser. (user: mario, size: 7825) [annotate] [blame] [check-ins using]
- File contrib/file.py — part of check-in [d91ab221b3] at 2015-05-05 14:27:27 on branch trunk — Moved `file` and `punkcast` into contrib/ group. (user: mario, size: 7825) [annotate] [blame] [check-ins using]
To Artifact [c5a4a98a96]:
- File contrib/file.py — part of check-in [2335ea7a46] at 2015-05-13 00:00:39 on branch trunk — Move mime_fmt() into regular function. Fix live365 ahttp feedback= bug. Regroup functions and update a few comments in channels/__init__ (user: mario, size: 7820) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
173 174 175 176 177 178 179 |
def file_entry(self, fn, dir):
# basic data
meta = {
"title": fn,
"filename": fn,
"url": "file://" + dir + "/" + fn,
"genre": "",
| | | 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
def file_entry(self, fn, dir):
# basic data
meta = {
"title": fn,
"filename": fn,
"url": "file://" + dir + "/" + fn,
"genre": "",
"format": mime_fmt(fn[-3:]),
"editable": True,
}
# add ID3
meta.update(mutagen_postprocess(get_meta(dir + "/" + fn) or {}))
return meta
# check fn for .ext
|
| ︙ | ︙ |