- commit
- 0cf4cda7ba459ad5764fe4ba81aca96e758f1155
- parent
- 1ad6b752feea4b9df273e3c8bb4b7c57f2ba75d3
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-03-06 15:35
avoid loading playlists
Diffstat
| M | xspf2m3u.py | 5 | ++++- |
1 files changed, 4 insertions, 1 deletions
diff --git a/xspf2m3u.py b/xspf2m3u.py
@@ -8,7 +8,10 @@ from xml.etree import ElementTree 8 8 try: 9 9 import youtube_dl 10 1011 -1 ydl = youtube_dl.YoutubeDL(params={'quiet': True})-1 11 ydl = youtube_dl.YoutubeDL(params={ -1 12 'noplaylist': True, -1 13 'quiet': True, -1 14 }) 12 15 ydl_selector = ydl.build_format_selector('bestaudio/best') 13 16 except ImportError: 14 17 youtube_dl = None