Check-in [fed23f23f7]
Overview
Comment: | Use generic `audio/mod-zip` for all MOD Archive urls. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
fed23f23f7dd3c94009cbf44e14c6ff9 |
User & Date: | mario on 2015-04-24 19:21:55 |
Other Links: | manifest | tags |
Context
2015-04-24
| ||
19:22 | Add .url exporting (shallow Windows variant of .desktop files). check-in: fd963a3d9b user: mario tags: trunk | |
19:21 | Use generic `audio/mod-zip` for all MOD Archive urls. check-in: fed23f23f7 user: mario tags: trunk | |
19:21 | Document current reuse_m3u and nothreads config behaviour. Rewrite placeholder and application help pages to be more understandable. Mention GUI alternatives to streamripper. check-in: 497073df0d user: mario tags: trunk | |
Changes
Modified channels/modarchive.py from [90763cbfb7] to [e1c513f5b2].
︙ | ︙ | |||
17 18 19 20 21 22 23 | # 8UMSCQsQZFwHEAijGRk8h207fPrlj2wdthkq9dNotQkjjZISpY1BSoExoLXBmKcoSxBr8ENYvLfKDwsPWPt7k8nxAX5ZXMFOWERaIy7f/tj8L0n5tGzWSzJdHcZNOihpOGic8tfaI4TRZNM2j4+7yP9+/hd7YWLXivTEWgAAAABJRU5ErkJggg== # # A genre browser for tracker music files from the MOD Archive. # # MOD files dodn't work with all audio players. And with the default # download method, it'll receive a .zip archive with embeded .mod file. # | | | > | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | # 8UMSCQsQZFwHEAijGRk8h207fPrlj2wdthkq9dNotQkjjZISpY1BSoExoLXBmKcoSxBr8ENYvLfKDwsPWPt7k8nxAX5ZXMFOWERaIy7f/tj8L0n5tGzWSzJdHcZNOihpOGic8tfaI4TRZNM2j4+7yP9+/hd7YWLXivTEWgAAAABJRU5ErkJggg== # # A genre browser for tracker music files from the MOD Archive. # # MOD files dodn't work with all audio players. And with the default # download method, it'll receive a .zip archive with embeded .mod file. # # Configuring VLC for `audio/mod+zip` or just a generic `*/*` works # most reliably. See the help on how to define wget/curl to download # them as well. import re import ahttp as http from config import conf from channels import * from config import * |
︙ | ︙ | |||
100 101 102 103 104 105 106 | for uu in rx_mod.findall(html): (url, id, fmt, title, file, rating) = uu #log.DATA( uu ) entries.append({ "genre": cat, "url": url, "id": id, | | | 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | for uu in rx_mod.findall(html): (url, id, fmt, title, file, rating) = uu #log.DATA( uu ) entries.append({ "genre": cat, "url": url, "id": id, "format": "audio/mod+zip", "title": title, "playing": file, "listeners": int(rating if rating else 0), "homepage": "http://modarchive.org/index.php?request=view_by_moduleid&query="+id, }) # done return entries |