]> git.bitcoin.ninja Git - youtube-dl/commitdiff
8tracks: Better default titles
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 27 Jan 2013 03:05:53 +0000 (04:05 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 27 Jan 2013 03:05:53 +0000 (04:05 +0100)
test/tests.json
youtube_dl/InfoExtractors.py

index 2fdd7f0f59472b50f069d06bdff59f2966f86f34..a06266689d845e777f441ac314f48a4526c51da9 100644 (file)
         "file": "11885610.m4a",
         "md5": "96ce57f24389fc8734ce47f4c1abcc55",
         "info_dict": {
-          "title": "youtube-dl test track 1 \"'/\\\u00e4\u21ad",
-          "uploader": "youtue-dl project<>\"'"
+          "title": "youtue-dl project<>\"' - youtube-dl test track 1 \"'/\\\u00e4\u21ad",
+          "uploader_id": "ytdl"
         }
       },
       {
         "file": "11885608.m4a",
         "md5": "4ab26f05c1f7291ea460a3920be8021f",
         "info_dict": {
-          "title": "youtube-dl test track 2 \"'/\\\u00e4\u21ad"
+          "title": "youtube-dl project - youtube-dl test track 2 \"'/\\\u00e4\u21ad",
+          "uploader_id": "ytdl"
+
         }
       },
       {
         "file": "11885679.m4a",
         "md5": "d30b5b5f74217410f4689605c35d1fd7",
         "info_dict": {
-          "title": "youtube-dl test track 3 \"'/\\\u00e4\u21ad"
+          "title": "youtube-dl project as well - youtube-dl test track 3 \"'/\\\u00e4\u21ad"
         }
       },
       {
         "file": "11885680.m4a",
         "md5": "4eb0a669317cd725f6bbd336a29f923a",
         "info_dict": {
-          "title": "youtube-dl test track 4 \"'/\\\u00e4\u21ad"
+          "title": "youtube-dl project as well - youtube-dl test track 4 \"'/\\\u00e4\u21ad"
         }
       },
       {
         "file": "11885682.m4a",
         "md5": "1893e872e263a2705558d1d319ad19e8",
         "info_dict": {
-          "title": "youtube-dl test track 5 \"'/\\\u00e4\u21ad"
+          "title": "PH - youtube-dl test track 5 \"'/\\\u00e4\u21ad"
         }
       },
       {
         "file": "11885683.m4a",
         "md5": "b673c46f47a216ab1741ae8836af5899",
         "info_dict": {
-          "title": "youtube-dl test track 6 \"'/\\\u00e4\u21ad"
+          "title": "PH - youtube-dl test track 6 \"'/\\\u00e4\u21ad"
         }
       },
       {
         "file": "11885684.m4a",
         "md5": "1d74534e95df54986da7f5abf7d842b7",
         "info_dict": {
-          "title": "youtube-dl test track 7 \"'/\\\u00e4\u21ad"
+          "title": "phihag - youtube-dl test track 7 \"'/\\\u00e4\u21ad"
         }
       },
       {
         "file": "11885685.m4a",
         "md5": "f081f47af8f6ae782ed131d38b9cd1c0",
         "info_dict": {
-          "title": "youtube-dl test track 8 \"'/\\\u00e4\u21ad"
+          "title": "phihag - youtube-dl test track 8 \"'/\\\u00e4\u21ad"
         }
       }
     ]
index 0af59bce29794cef8d9aa0fe13058a60b6842667..ff085b0ee2fcf72a3e7b82e289a3378d3d02ac78 100755 (executable)
@@ -3892,8 +3892,9 @@ class EightTracksIE(InfoExtractor):
             info = {
                 'id': track_data['id'],
                 'url': track_data['track_file_stream_url'],
-                'title': track_data['name'],
-                'uploader': track_data['performer'],
+                'title': track_data['performer'] + u' - ' + track_data['name'],
+                'raw_title': track_data['name'],
+                'uploader_id': data['user']['login'],
                 'ext': 'm4a',
             }
             res.append(info)