Check-in [b14e5127d9]
Overview
| Comment: | Make *.pls default again for exportcat. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
b14e5127d98c2fa89598f63102ff8a37 |
| User & Date: | mario on 2016-11-19 13:13:03 |
| Other Links: | manifest | tags |
Context
|
2016-11-19
| ||
| 13:13 | Fix UTF-8 BOM, SecPolicy for .BAT, and MSI registration for silent windows installers. check-in: 41f2ddf18a user: mario tags: trunk | |
| 13:13 | Make *.pls default again for exportcat. check-in: b14e5127d9 user: mario tags: trunk | |
|
2016-11-16
| ||
| 19:24 | Updated CHM for next release. check-in: d0bfdd7f6a user: mario tags: trunk | |
Changes
Modified channels/exportcat.py from [761166da1a] to [0cd7c1b0ab].
| ︙ | ︙ | |||
47 48 49 50 51 52 53 |
# Fetch streams from category, show "Save as" dialog, then convert URLs and export as playlist file
def savewindow(self, *w):
cn = self.parent.channel()
source = cn.listformat
streams = cn.streams[cn.current]
category = re.sub(r"[^\w&-+]+", "_", cn.current)
| | | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# Fetch streams from category, show "Save as" dialog, then convert URLs and export as playlist file
def savewindow(self, *w):
cn = self.parent.channel()
source = cn.listformat
streams = cn.streams[cn.current]
category = re.sub(r"[^\w&-+]+", "_", cn.current)
fn = uikit.save_file("Export category", None, "%s.%s.%s" % (cn.module, category, "pls"))
log.PROC("Exporting category to", fn)
if fn:
dest = re.findall("\.(m3u|pls|xspf|jspf|json|smil|asx|desktop|url)8?$", fn.lower())
if dest:
dest = dest[0]
else:
self.parent.status("Unsupported export playlist type (file extension).")
return
action.save_playlist(source="asis", multiply=False).file(rows=streams, fn=fn, dest=dest)
pass
|