matthias4217 / jukebox-ultra-nrv

Multi-user jukebox for LAN use
https://gitlab.com/club-jeux-int/jukebox-ultra-nrv
3 stars 3 forks source link

If searching for a song on bandcamp, it still searches on youtube, and fails if nothing is found on YT #84

Open matthias4217 opened 4 years ago

matthias4217 commented 4 years ago

If I'm looking for a song on bandcamp, which hasn't got any youtube version.

[youtube:search] query "https://alicedantor.bandcamp.com/track/5henanigan5": Downloading page 1                                                       
ERROR: [youtube] No video results                                                                                                                     
Traceback (most recent call last):                                                                        
  File "/home/membre/.local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 796, in extract_info                                           
    ie_result = ie.extract(url)                                                                      
  File "/home/membre/.local/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 530, in extract                                         
    ie_result = self._real_extract(url)                                                                    
  File "/home/membre/.local/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 2968, in _real_extract                                  
    return self._get_n_results(query, n)                                                                     
  File "/home/membre/.local/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 3091, in _get_n_results                                
    '[youtube] No video results', expected=True)                                                                    
youtube_dl.utils.ExtractorError: [youtube] No video results

Maybe a simple try/catch would fix it, or something more fancy ?

Version of the jukebox : MkIII-1.2.0 Environment : Main prod server (Debian) (should not be the cause of the bug)

To Reproduce

  1. Search https://alicedantor.bandcamp.com/track/5henanigan5