mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
escape encoding error. Fixes #977
This commit is contained in:
parent
3c7416ca03
commit
222c445460
1 changed files with 6 additions and 3 deletions
|
@ -925,9 +925,12 @@ def is_archive_file(filename):
|
|||
def isMediaFile(mediafile, media=True, audio=True, meta=True, archives=True):
|
||||
fileName, fileExt = os.path.splitext(mediafile)
|
||||
|
||||
# ignore MAC OS's retarded "resource fork" files
|
||||
if fileName.startswith('._'):
|
||||
return False
|
||||
try:
|
||||
# ignore MAC OS's "resource fork" files
|
||||
if fileName.startswith('._'):
|
||||
return False
|
||||
except:
|
||||
pass
|
||||
|
||||
if (media and fileExt.lower() in core.MEDIACONTAINER)\
|
||||
or (audio and fileExt.lower() in core.AUDIOCONTAINER)\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue