Check-in [3c7e820654]
Overview
Comment: | Use file:// prefix for storing local paths. (Did break DND without "srv" export.) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
3c7e8206542ae72af634d7419269f451 |
User & Date: | mario on 2015-05-04 15:21:17 |
Other Links: | manifest | tags |
Context
2015-05-04
| ||
15:21 | Split pluginconf from config module. check-in: 0d6acc5aef user: mario tags: trunk | |
15:21 | Use file:// prefix for storing local paths. (Did break DND without "srv" export.) check-in: 3c7e820654 user: mario tags: trunk | |
15:20 | Shorter format option descriptions. check-in: f4887cae4e user: mario tags: trunk | |
Changes
Modified channels/file.py from [a4d7826b5b] to [fa563ddee4].
1 2 3 4 5 6 7 | # api: streamtuner2 # title: File browser # description: Displays mp3/oggs or m3u/pls files from local media file directories. # type: channel # category: local # version: 0.2 # priority: optional | > | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # api: streamtuner2 # title: File browser # description: Displays mp3/oggs or m3u/pls files from local media file directories. # type: channel # category: local # version: 0.2 # priority: optional # status: unsupported # depends: python:mutagen, python:id3 # config: # { name: file_browser_dir, type: text, value: "$XDG_MUSIC_DIR, ~/MP3", description: "List of directories to scan for audio files." }, # { name: file_browser_ext, type: text, value: "mp3,ogg, m3u,pls,xspf, avi,flv,mpg,mp4", description: "File type/extension filter." }, # # Local file browser. Presents files from configured directories. |
︙ | ︙ | |||
156 157 158 159 160 161 162 | # extract meta data def file_entry(self, fn, dir): # basic data meta = { "title": fn, "filename": fn, | | | 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | # extract meta data def file_entry(self, fn, dir): # basic data meta = { "title": fn, "filename": fn, "url": "file://" + dir + "/" + fn, "genre": "", "format": self.mime_fmt(fn[-3:]), "editable": True, } # add ID3 meta.update(mutagen_postprocess(get_meta(dir + "/" + fn) or {})) return meta |
︙ | ︙ |