chenqingyu / auto-sub

Automatically exported from code.google.com/p/auto-sub
0 stars 0 forks source link

english subtitle without postfix will result in 2 points in filename #180

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. enable fallback to english and download english
2. set filename postfix for english to empty
3. set postfix for dutch to "nl"

What is the expected output? What do you see instead?
english sub with no postfix, but what i get is name..srt (2 points)

What version of the product are you using? On what operating system?
Beta 0.5.6 on synology nas

Please provide any additional information below.

Original issue reported on code.google.com by willem.stoker on 6 Mar 2013 at 7:06

GoogleCodeExporter commented 9 years ago
Read this closed issue: http://code.google.com/p/auto-sub/issues/detail?id=173

It's a known 'issue' and it will not be solved.

Original comment by Donny.va...@gmail.com on 6 Mar 2013 at 9:54

GoogleCodeExporter commented 9 years ago
Thanks for your answer. I will try to fix it myself.

The reason I want this fixed is because the dutch subtitles are not available 
yet since I watch series as soon as the are available. My player (samsung TV) 
does not support other filenames...

Don't you think this is a good reason to fix this in the real source?

Original comment by willem.stoker on 7 Mar 2013 at 7:05

GoogleCodeExporter commented 9 years ago
something like this should fix is:

engsrtfile = os.path.splitext(originalfile)[0] + u"" + autosub.SUBENG + u".srt"
if engsrtfile.endswith("..srt"):
  engsrtfile.replace("..srt", ".srt")

Original comment by willem.stoker on 7 Mar 2013 at 8:12

GoogleCodeExporter commented 9 years ago
Check: http://code.google.com/p/auto-sub/issues/detail?id=53

Should be fixed, not that simple.

Original comment by romke.va...@gmail.com on 16 Apr 2013 at 8:26