aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/channel.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/channel.py')
-rw-r--r--youtube/channel.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube/channel.py b/youtube/channel.py
index de75eaa..79b7c9b 100644
--- a/youtube/channel.py
+++ b/youtube/channel.py
@@ -219,8 +219,7 @@ def extract_info(polymer_json, tab):
else:
items = contents # for search
- # TODO: Fix this URL prefixing shit
- additional_info = {'author': info['channel_name'], 'author_url': '/channel/' + channel_id}
+ additional_info = {'author': info['channel_name'], 'author_url': 'https://www.youtube.com/channel/' + channel_id}
info['items'] = [yt_data_extract.renderer_info(renderer, additional_info) for renderer in items]
elif tab == 'about':
@@ -258,8 +257,8 @@ def extract_info(polymer_json, tab):
return info
def post_process_channel_info(info):
- info['avatar'] = '/' + info['avatar']
- info['channel_url'] = '/' + info['channel_url']
+ info['avatar'] = util.prefix_url(info['avatar'])
+ info['channel_url'] = util.prefix_url(info['channel_url'])
for item in info['items']:
yt_data_extract.prefix_urls(item)
yt_data_extract.add_extra_html_info(item)