Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Honeypot
mopidy-youtube
Commits
c5378b38
Commit
c5378b38
authored
Jan 17, 2016
by
Stein Magnus Jodal
Browse files
Fix my own review comments
parent
cbe1f817
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.rst
View file @
c5378b38
...
...
@@ -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)
-------------------
...
...
mopidy_youtube/__init__.py
View file @
c5378b38
...
...
@@ -6,7 +6,7 @@ import os
from
mopidy
import
config
,
ext
__version__
=
'2.0.
2
'
__version__
=
'2.0.
1
'
logger
=
logging
.
getLogger
(
__name__
)
...
...
mopidy_youtube/backend.py
View file @
c5378b38
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment