Issue 98 in auto-sub: Option to skip dutch subs

68 views
Skip to first unread message

auto...@googlecode.com

unread,
May 3, 2012, 1:04:28 PM5/3/12
to aut...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 98 by michael....@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

What steps will reproduce the problem?
1. Dutch subs will alway be downloaded
2.
3.

What is the expected output? What do you see instead?
As I don't speak dutch but love the english subs from bierdopje I would
like to disable the download of dutch subs.

What version of the product are you using? On what operating system?
Alpha 0.5.3, Win WHS

Please provide any additional information below.



auto...@googlecode.com

unread,
May 6, 2012, 4:34:31 PM5/6/12
to aut...@googlegroups.com
Updates:
Status: Accepted
Labels: -Type-Defect Type-Enhancement

Comment #1 on issue 98 by romke.va...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Hi, Srry for the late response
It is great to see that autosub got some international interest!

I have had the same question a week ago, and here my reply:

"Keep in mind, AutoSub is developed voor bierdopje.com, which is a
community sites for tv-shows and dutch subtitles. I have added the feature
for English subtitles because they are also available on bierdopje.com, but
the main goal always has been provided automatic dutch subtitles.

Now, I want to add the feature of disabling langauage very bad, but as you
can see on the issue page of our google-project site. There are so many
things to do and I have so little time! I heard some users talking about a
workaround for this problem. I don't know how technical you are, but if you
are I might have a workaround for you :)

For the future, I really hope to create a application that is not bound to
bierdopje.com and provide subtitles for more languages, but again... So
many ideas so little time :P

So, if you are technical there might be a workaround, if not you have to
wait till I am able to implement the language selection."

auto...@googlecode.com

unread,
May 7, 2012, 4:21:12 PM5/7/12
to aut...@googlegroups.com

Comment #2 on issue 98 by michael....@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

hi, thanks for your reply!
I don´t know if I am technical enough but I would love to try. So please
throw any information at me which will lead me to the workaround!
Thanks!


auto...@googlecode.com

unread,
May 8, 2012, 10:56:08 AM5/8/12
to aut...@googlegroups.com

Comment #3 on issue 98 by gunnar.s...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Please send me the workaround, too. I tried

del D:/Downloads/Serien/*.Netherlands.srt

in Postprocesscmd but all files will be deleted. (Subs in Dutch and English
and the video files, too :-( )

Thank you.
Bye

auto...@googlecode.com

unread,
May 8, 2012, 11:17:32 AM5/8/12
to aut...@googlegroups.com

Comment #4 on issue 98 by gunnar.s...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Ok, I found a way.

Open editor/notepad

write:

del [Rootpath]\*.[Subnl].srt

[Rootpath] as in the config (is there a space in the path put it in "...")
[Subnl] as in config.

for e.g.

del D:\Downloads\Serien\*.Dutch.srt

Save as .bat and put it in the Auto-Sub folder. E.g. del-dutch.bat

Put the name of your bat-file in the "Postprocesscmd". If the file is in
the same folder as auto-sub the name is enough. If the bat-files is in a
different location you have to put in the complete path.



auto...@googlecode.com

unread,
May 8, 2012, 1:55:54 PM5/8/12
to aut...@googlegroups.com

Comment #5 on issue 98 by gunnar.s...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

This works only for Windows. I'm thinking for Linux somthing similar
with "rm" instead of "del". But I have no idea about Mac.

auto...@googlecode.com

unread,
May 8, 2012, 2:30:05 PM5/8/12
to aut...@googlegroups.com

Comment #6 on issue 98 by romke.va...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Ok, deleting doesn't work and is a bad idea. Auto-Sub will always keep
downloading the dutch subtitle. Best fix is to rename the english to the
dutch subtitle file. Attached to this message is a work around.

Set those settings in AutoSub:
Downloadeng = Enabled
subeng = 'en'
subnl = '' <=== empty!
postprocesscmd = <path to python Disable.Dutch.py

When a english subtitle is downloaded it is renamed to the dutch subtitle.
For example:
Dexter.S01E01.mkv needs a subtitle
AutoSub sees that Dexter.S01E01.srt and Dexter.S01E01.en.srt doesn't exsist
yet.
He downloads them, the script sees Dexter.S01E01.en.srt is being download,
it copy him to Dexter.S01E01.srt.

I hope it work for your guys, I tested it and it worked fine!

Attachments:
Disable.Dutch.py 656 bytes

auto...@googlecode.com

unread,
May 8, 2012, 4:58:54 PM5/8/12
to aut...@googlegroups.com

Comment #7 on issue 98 by michael....@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Hey guys,

thanks for your replys!
I will try your solution romke. But right now I don't know what will happen
to all my existing subs which are there with namig series - sxxexx -
title.srt. As I understand autosub will recognize them as dutch subs and
download the english version which will be overwrite the already existing
english sub?

auto...@googlecode.com

unread,
May 9, 2012, 4:43:10 AM5/9/12
to aut...@googlegroups.com

Comment #8 on issue 98 by Gone...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

What happens if both the English and Dutch subtitles were downloaded ?
Then the file Dexter.S01E01.en.srt can not be copied to
Dexter.S01E01.srt ... or does Python overwrite the Dutch file ?

I will try this tonight.

auto...@googlecode.com

unread,
May 9, 2012, 5:02:06 AM5/9/12
to aut...@googlegroups.com

Comment #9 on issue 98 by romke.va...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

@michael "As I understand autosub will recognize them as dutch subs and
download the english version which will be overwrite the already existing
english sub?"
Correct if ShowName.SXXEXX.en.srt does not exsists it will download a new
english subtitle and copy it to the ShowName.SXXeXX.srt

@GonerNL
Python overwrites the file

auto...@googlecode.com

unread,
May 10, 2012, 6:21:44 AM5/10/12
to aut...@googlegroups.com

Comment #10 on issue 98 by Gone...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

I'm getting an error (AutoSubService.log) :

2012-05-10 10:23:24,410 ERROR downloadSubs: PostProcess:
File "/usr/local/autosub/Disable.Dutch.py", line 1
rst argument is srt file
^
SyntaxError: invalid syntax

auto...@googlecode.com

unread,
May 10, 2012, 6:23:24 AM5/10/12
to aut...@googlegroups.com

Comment #11 on issue 98 by romke.va...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

What is your postprocesscmd in your config?

auto...@googlecode.com

unread,
May 10, 2012, 5:08:35 PM5/10/12
to aut...@googlegroups.com

Comment #12 on issue 98 by Gone...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Ah, you read my post before I deleted it ?? Must have been close ;-)
I noticed that when copying/pasting your code to 'vi' the first # was
dropped, so I got and error on line 1.
I'll test it again ....

auto...@googlecode.com

unread,
May 13, 2012, 5:37:06 AM5/13/12
to aut...@googlegroups.com

Comment #13 on issue 98 by michael....@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Hi romke,

I wanted to thank for your workaround. It is working quiet fine for me
although there are some disantvantages. If I enable Downloadeng auto-sub
will download all my english subs again. As I don't want that I disabled
it. This on the other hand will lead to only dutch subtitles if I add older
episodes for which dutch subs are available. So I will download the english
ones manually... For all new shows it works really fine beacause english
subs are available befor the dutch ones.

So bottom line is: Thanks again but I would really love to see the language
support in Auto-Sub... :-)


auto...@googlecode.com

unread,
May 15, 2012, 6:29:16 AM5/15/12
to aut...@googlegroups.com

Comment #14 on issue 98 by Gone...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

workaround works, in a way ;)

2012-05-15 11:02:17,179 INFO scanDir: Dutch subtitle wanted for
Game.of.Thrones.S02E06.HDTV.XviD-XS.avi and added to wantedQueue
2012-05-15 12:02:12,227 INFO checkSub: The episode Game Of Thrones -
Season 02 Episode 06 has a matching subtitle on bierdopje, adding to
toDownloadQueue
2012-05-15 12:02:12,533 INFO checkSub: The episode Game Of Thrones -
Season 02 Episode 06 has a matching subtitle on bierdopje, adding to
toDownloadQueue
2012-05-15 12:02:12,957 INFO downloadSubs: DOWNLOADED: /volume1/video/Game
of Thrones/Season 2/Game.of.Thrones.S02E06.HDTV.XviD-XS.srt
2012-05-15 12:02:13,086 INFO downloadSubs: Running PostProcess
2012-05-15 12:02:14,122 INFO downloadSubs: DOWNLOADED: /volume1/video/Game
of Thrones/Season 2/Game.of.Thrones.S02E06.HDTV.XviD-XS.en.srt
2012-05-15 12:02:14,188 INFO downloadSubs: Running PostProcess

but now there are 2 English .srt files ?

auto...@googlecode.com

unread,
May 16, 2012, 3:26:14 AM5/16/12
to aut...@googlegroups.com

Comment #15 on issue 98 by tomisl...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Thank you for the workaround. Could you add a line to delete *.en.srt at
the end so we don't end up with two files ? Cheers

auto...@googlecode.com

unread,
May 17, 2012, 7:17:15 AM5/17/12
to aut...@googlegroups.com

Comment #16 on issue 98 by romke.va...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

You can't delete the en.srt, because autosub will download it again then!
Yes, you end up with 2 english subtitles. But aint that better than 1 dutch
and 1 english? ;)

auto...@googlecode.com

unread,
May 17, 2012, 2:21:30 PM5/17/12
to aut...@googlegroups.com

Comment #17 on issue 98 by tomisl...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Right ! Didn't think of it... Thanks again!

auto...@googlecode.com

unread,
Jun 27, 2012, 3:36:11 PM6/27/12
to aut...@googlegroups.com

Comment #18 on issue 98 by michael....@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Just a note for tomisl: I ran in some problems with the setting above with
the script. Long story. I came across trying what happens if I set both
appendices to "english". Fallback and Download English is enabled.
Don't know how, but now I will get only english subtitles. Both for new
episodes (which is quiet obvious as english subs are released first) and
also when I add some older seasons which have dutch subs already waiting on
bd. Maybe their downloaded (as ...english.srt) but will be overwritten by
real english one because it has the same name. I have some dutch flags in
history but email notification will always show me "en".

auto...@googlecode.com

unread,
Jul 13, 2012, 8:27:20 AM7/13/12
to aut...@googlegroups.com

Comment #19 on issue 98 by romke.va...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Issue 115 has been merged into this issue.

auto...@googlecode.com

unread,
Jul 13, 2012, 11:38:09 AM7/13/12
to aut...@googlegroups.com

Comment #20 on issue 98 by reinderv...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

I disagree that the issue i posted (115) is duplicate to this Issue. My
point is, when I leave the name for English subtitle empty it results in
subtitle..srt instead of subtitle.srt. If this is fixed I can use the
english subtitles to appear on my Samsung tv.

auto...@googlecode.com

unread,
Sep 26, 2012, 1:05:21 PM9/26/12
to aut...@googlegroups.com

Comment #21 on issue 98 by romke.va...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Issue 126 has been merged into this issue.

auto...@googlecode.com

unread,
Oct 2, 2012, 11:54:08 AM10/2/12
to aut...@googlegroups.com

Comment #22 on issue 98 by quac...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

When I use that Disable.Dutch.py workaround the script file opens in
notepad automatically when using Auto-Sub, and if I close it a new window
just pops up. Any ideas?

auto...@googlecode.com

unread,
Oct 2, 2012, 11:57:50 AM10/2/12
to aut...@googlegroups.com

Comment #23 on issue 98 by quac...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

When I use that Disable.Dutch.py workaround the script file opens in
Notepad automatically when using Auto-Sub, and if I close it a new window
just pops up. I had to unassociate .py opening in Notepad to fix it.

auto...@googlecode.com

unread,
Oct 2, 2012, 1:51:22 PM10/2/12
to aut...@googlegroups.com

Comment #24 on issue 98 by michael....@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Have you tried my solution described above without the script?

auto...@googlecode.com

unread,
Oct 3, 2012, 3:55:33 PM10/3/12
to aut...@googlegroups.com

Comment #25 on issue 98 by romke.va...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

@quack3d Your postprocesscommand is incorrect.

Check: http://code.google.com/p/auto-sub/wiki/ExamplePostProcessScript for
more info. Your problem is that Windows doesn't know it needs to run the
workaround using python.

Install Python if you run from the AutoSub windows package, change
postprocesscommand to something like:
"C:\Python2.7\python.exe Disable.Dutch.py"

auto...@googlecode.com

unread,
Oct 28, 2012, 5:28:58 PM10/28/12
to aut...@googlegroups.com

Comment #26 on issue 98 by romke.va...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Issue 142 has been merged into this issue.

auto...@googlecode.com

unread,
Feb 5, 2013, 3:51:29 PM2/5/13
to aut...@googlegroups.com

Comment #27 on issue 98 by angeloft...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

That is a very good feature request.
There's an On/Off switch for English, but none for the Dutch language.

Could someone please direct us into the right direction?
I don't want to download the Dutch subs and then delete them afterwards
(like done now). Would be nice if we could skip downloading them at all.
It can not be very hard, but I don't know which file to edit :D

auto...@googlecode.com

unread,
Feb 5, 2013, 3:53:09 PM2/5/13
to aut...@googlegroups.com

Comment #28 on issue 98 by angeloft...@gmail.com: Option to skip dutch subs
The version I'm using; auto-sub.Beta.0.5.6.Windows.zip

auto...@googlecode.com

unread,
Mar 8, 2013, 11:10:22 AM3/8/13
to aut...@googlegroups.com

Comment #29 on issue 98 by johnmach...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Heck, I'm Dutch and even I want the option to just download English subs if
present.
I don't really care for Dutch subs, because of the same reason I dislike
sync'd original English animation or translated-into-Dutch books for that
matter.

The best option would even be to give people a choice, maybe even per show?

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

auto...@googlecode.com

unread,
May 28, 2013, 1:25:22 PM5/28/13
to aut...@googlegroups.com

Comment #30 on issue 98 by frederik.thuysbaert: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Dirty fix:

1.Stop autosub

2.Edit the file "scanDisk.py" and go to line 67, this should read:
lang.append('nl')

3. Now comment out (or remove) this line, AND the 'if' line above.

4. Remove the file 'database.db' from your autosub directory (so scandisk
refreshes everything when you start autosub again, not really sure if this
was needed but I did it anyway)

5. Start autosub

auto...@googlecode.com

unread,
May 28, 2013, 1:42:21 PM5/28/13
to aut...@googlegroups.com

Comment #31 on issue 98 by frederik.thuysbaert: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Edit:

Failed to mention you should also change the IF-statement on line #48:

In that line a check is made for nl subtitles or english subtitles existing.
You should change this line to:
if (not os.path.exists(os.path.join(dirname, srtfileeng)) and
autosub.DOWNLOADENG):

Else episodes with matching english subtitles will remain in the wanted
queue.

auto...@googlecode.com

unread,
Jun 2, 2013, 4:11:45 PM6/2/13
to aut...@googlegroups.com

Comment #32 on issue 98 by ef4...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Works. Thanks.

auto...@googlecode.com

unread,
Jun 2, 2013, 4:12:45 PM6/2/13
to aut...@googlegroups.com

Comment #33 on issue 98 by gunnar.s...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Works. Thanks a lot.

auto...@googlecode.com

unread,
Jul 28, 2013, 3:42:38 PM7/28/13
to aut...@googlegroups.com

Comment #34 on issue 98 by Groenvel...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Thanks Frederik, that's working well.

auto...@googlecode.com

unread,
Aug 6, 2013, 6:33:04 AM8/6/13
to aut...@googlegroups.com

Comment #35 on issue 98 by mory...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

I made a very small change in the Disable.Dutch.py script. Basically, I
just added an option for when the dutch subtitles have a different suffix
(in my case it's dt). You can change it in the 2nd line of the script to
whatever you want. Other than that - the script works wonderfully. This is
exactly what I was looking for. A bit of a convoluted way to get English
only subtitles, but there's nothing easier & better out there...
Thank you!

Attachments:
Disable.Dutch.py 685 bytes

auto...@googlecode.com

unread,
Sep 30, 2013, 6:29:47 AM9/30/13
to aut...@googlegroups.com

Comment #36 on issue 98 by IgorGorb...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Im having the same issue here's my log:

D:\Tools\Auto Sub\library\autosub.zip\Cheetah\Compiler.py:1509: UserWarning:
You don't have the C version of NameMapper installed! I'm disabling
Cheetah's useStackFrames option as it is painfully slow with the Python
version of NameMapper. You should get a copy of Cheetah with the compiled C
version of NameMapper.
[30/Sep/2013:12:23:00] HTTP
Request Headers:
REFERER: http://localhost:8083/home/
HOST: localhost:8083
CONNECTION: keep-alive
Remote-Addr: 127.0.0.1
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101
Firefox/23.0
COOKIE: plushContainerWidth=100%25; plushMultiOps=1; plushNoTopMenu=0;
advanced_toggle_checked=0; wanted_view2=details; manage_view2=details
ACCEPT-LANGUAGE: nl,en-us;q=0.7,en;q=0.3
ACCEPT-ENCODING: gzip, deflate
[30/Sep/2013:12:23:00] HTTP Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 656, in respond
File "cherrypy\lib\encoding.pyo", line 188, in __call__
File "cherrypy\_cpdispatch.pyo", line 34, in __call__
File "autosub\WebServer.pyo", line 270, in runNow
AttributeError: 'NoneType' object has no attribute 'runnow'

auto...@googlecode.com

unread,
Oct 7, 2013, 7:38:10 AM10/7/13
to aut...@googlegroups.com

Comment #37 on issue 98 by bertsche...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Can't seem to get the disable.dutch.py to work in Windows 8.

Tried in Post-process CMD:
"c:\Program Files\Python\python.exe Disable.Dutch.py"
"c:\Program Files\Python\python.exe -Disable.Dutch.py"
"c:\Program Files\Python\Disable.Dutch.py"

Everytime I get the following error:
ERROR downloadSubs: PostProcess: The filename, directory name, or volume
label syntax is incorrect.

Anyone got a solution?

auto...@googlecode.com

unread,
Oct 7, 2013, 7:40:30 AM10/7/13
to aut...@googlegroups.com

Comment #38 on issue 98 by mory...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

I think your mistake is that you didn't provice a path for the .py file
(where is it on your hard drive?). In my AutoSub Config, the line is:

"c:\python27\python.exe g:\Disable.Dutch.py" (without the quotation marks).

auto...@googlecode.com

unread,
Oct 7, 2013, 9:20:00 AM10/7/13
to aut...@googlegroups.com

Comment #39 on issue 98 by bertsche...@gmail.com: Option to skip dutch subs
http://code.google.com/p/auto-sub/issues/detail?id=98

Thanks it worked. Had to put the files in C:\Python though, the space
in "C:\Program Files\..." was also messing up the cmd.
Reply all
Reply to author
Forward
0 new messages