Skip to content

Commit

Permalink
YouTube: Fix directory search (bug 1760)
Browse files Browse the repository at this point in the history
For users who set their realname as display name,
search results resulted in non-working feeds.

Now using the username from the URI to fix this.
  • Loading branch information
thp committed Jan 27, 2013
1 parent 9e34eb1 commit aa488bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gpodder/youtube.py
Expand Up @@ -25,6 +25,8 @@

from gpodder import util

import os.path

import logging
logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -220,7 +222,7 @@ def __init__(self):

seen_users = set()
for entry in data['feed']['entry']:
user = entry['author'][0]['name']['$t']
user = os.path.basename(entry['author'][0]['uri']['$t'])
title = entry['title']['$t']
url = 'http://www.youtube.com/rss/user/%s/videos.rss' % user
if user not in seen_users:
Expand Down

0 comments on commit aa488bc

Please sign in to comment.