Fix syntax errors reported by flake8
This commit is contained in:
parent
3385c3cc9c
commit
482f3d4de4
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
nosetests -w elodie/tests && flake8 elodie --exclude=tests
|
flake8 elodie --exclude=tests && nosetests -w elodie/tests
|
||||||
|
|
|
@ -395,10 +395,11 @@ class Video(Media):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# gh-89 Before we wrap up we check if an album was previously set
|
# gh-89 Before we wrap up we check if an album was previously set
|
||||||
# and if so we re-apply that album because avmetareadwrite clobbers it
|
# and if so we re-apply that album because avmetareadwrite
|
||||||
|
# clobbers it
|
||||||
source_media = Media.get_class_by_file(source, [self.__class__])
|
source_media = Media.get_class_by_file(source, [self.__class__])
|
||||||
source_metadata = source_media.get_metadata()
|
source_metadata = source_media.get_metadata()
|
||||||
if('album' in source_metadata and source_metadata['album'] is not None):
|
if(source_metadata['album'] is not None):
|
||||||
check_media.set_album(source_metadata['album'])
|
check_media.set_album(source_metadata['album'])
|
||||||
|
|
||||||
# Copy file information from original source to temporary file
|
# Copy file information from original source to temporary file
|
||||||
|
|
Loading…
Reference in New Issue