You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/custom_libs/subliminal_patch/refiners/symlinks.py

22 lines
351 B

# coding=utf-8
from __future__ import absolute_import
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)