bazarr/libs/subliminal_patch/refiners/symlinks.py

21 lines
311 B
Python
Raw Normal View History

2018-10-31 16:08:29 +00:00
# coding=utf-8
import os
from common import update_video
def refine(video, **kwargs):
"""
:param video:
:param kwargs:
:return:
"""
try:
orig_fn = os.path.basename(os.path.realpath(video.name))
except:
return
if orig_fn:
update_video(video, orig_fn)