1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-03-12 23:23:09 +00:00
bazarr/libs/subliminal_patch/refiners/symlinks.py

22 lines
351 B
Python
Raw Normal View History

2018-10-31 17:08:29 +01:00
# coding=utf-8
2019-09-16 22:04:27 -04:00
from __future__ import absolute_import
2018-10-31 17:08:29 +01:00
import os
2019-09-16 22:04:27 -04:00
from .common import update_video
2018-10-31 17:08:29 +01:00
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)