Commit 4f17fe05 authored by Fjen Undso's avatar Fjen Undso
Browse files

fix uri search

parent a8ae59b2
......@@ -79,7 +79,7 @@ class YouTubeLibraryProvider(backend.LibraryProvider):
def _get_tracks(self, ids):
"""Process YouTube IDs and return tracks"""
fancy_ids = ' '.join([str(x) for x in ids])"Get tracks for ids: %s", fancy_ids)"Get YouTube tracks for IDs: %s", fancy_ids)
query = {
'part': 'id,snippet,contentDetails',
'fields': 'items(id,snippet(title,channelTitle,thumbnails(high(url))),contentDetails(duration))',
......@@ -106,7 +106,7 @@ class YouTubeLibraryProvider(backend.LibraryProvider):
def _get_playlist(self, id, maxresults=100):
"""Process YouTube playlist and return tracks""""Get Playlist for '%s'", str(id))"Get YouTube playlist for '%s'", str(id))
page = ''
video_ids = []
while page is not None and len(video_ids) < maxresults:
......@@ -209,7 +209,7 @@ class YouTubeLibraryProvider(backend.LibraryProvider):"Searching URL in YouTube '%s'", search_query)
return SearchResult(
)"Searching with youtube-dl for URL '%s'", search_query)
return SearchResult(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment