Commit c5378b38 authored by Stein Magnus Jodal's avatar Stein Magnus Jodal
Browse files

Fix my own review comments

parent cbe1f817
......@@ -77,10 +77,11 @@ Project resources
Changelog
=========
v2.0.2 (2015-11-30)
v2.0.2 (UNRELEASED)
-------------------
- Fix resolving of ``youtube:video`` URIs when looking up tracks. (Fixes: #21, PR: #50)
- Fix resolving of ``youtube:video`` URIs when looking up tracks. (Fixes: #21,
PR: #50)
v2.0.1 (2015-08-19)
-------------------
......
......@@ -6,7 +6,7 @@ import os
from mopidy import config, ext
__version__ = '2.0.2'
__version__ = '2.0.1'
logger = logging.getLogger(__name__)
......
......@@ -52,9 +52,8 @@ def resolve_url(url, stream=False):
try:
video = pafy.new(url)
if not stream:
uri = video_uri_prefix + '/%s.%s' % (
safe_url(video.title), video.videoid
)
uri = '%s/%s.%s' % (
video_uri_prefix, safe_url(video.title), video.videoid)
else:
uri = video.getbestaudio()
if not uri: # get video url
......
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