Open GoogleCodeExporter opened 8 years ago
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."
Original comment by romke.va...@gmail.com
on 6 May 2012 at 8:34
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!
Original comment by michael....@gmail.com
on 7 May 2012 at 8:21
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
Original comment by gunnar.s...@gmail.com
on 8 May 2012 at 2:56
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.
Original comment by gunnar.s...@gmail.com
on 8 May 2012 at 3:17
This works only for Windows. I'm thinking for Linux somthing similar with "rm"
instead of "del". But I have no idea about Mac.
Original comment by gunnar.s...@gmail.com
on 8 May 2012 at 5:55
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!
Original comment by romke.va...@gmail.com
on 8 May 2012 at 6:29
Attachments:
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?
Original comment by michael....@gmail.com
on 8 May 2012 at 8:58
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.
Original comment by Gone...@gmail.com
on 9 May 2012 at 8:42
@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
Original comment by romke.va...@gmail.com
on 9 May 2012 at 9:02
[deleted comment]
What is your postprocesscmd in your config?
Original comment by romke.va...@gmail.com
on 10 May 2012 at 10:23
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 ....
Original comment by Gone...@gmail.com
on 10 May 2012 at 9:08
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... :-)
Original comment by michael....@gmail.com
on 13 May 2012 at 9:36
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 ?
Original comment by Gone...@gmail.com
on 15 May 2012 at 10:29
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
Original comment by tomisl...@gmail.com
on 16 May 2012 at 7:26
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? ;)
Original comment by romke.va...@gmail.com
on 17 May 2012 at 11:17
Right ! Didn't think of it... Thanks again!
Original comment by tomisl...@gmail.com
on 17 May 2012 at 6:21
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".
Original comment by michael....@gmail.com
on 27 Jun 2012 at 7:35
Issue 115 has been merged into this issue.
Original comment by romke.va...@gmail.com
on 13 Jul 2012 at 12:27
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.
Original comment by reinderv...@gmail.com
on 13 Jul 2012 at 3:37
Issue 126 has been merged into this issue.
Original comment by romke.va...@gmail.com
on 26 Sep 2012 at 5:04
[deleted comment]
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.
Original comment by quac...@gmail.com
on 2 Oct 2012 at 3:57
Have you tried my solution described above without the script?
Original comment by michael....@gmail.com
on 2 Oct 2012 at 5:51
@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"
Original comment by romke.va...@gmail.com
on 3 Oct 2012 at 7:55
Issue 142 has been merged into this issue.
Original comment by romke.va...@gmail.com
on 28 Oct 2012 at 9:27
[deleted comment]
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
The version I'm using; auto-sub.Beta.0.5.6.Windows.zip
Original comment by angeloft...@gmail.com
on 5 Feb 2013 at 8:53
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?
Original comment by johnmach...@gmail.com
on 8 Mar 2013 at 4:10
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
Original comment by frederik.thuysbaert
on 28 May 2013 at 5:25
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.
Original comment by frederik.thuysbaert
on 28 May 2013 at 5:42
[deleted comment]
Works. Thanks a lot.
Original comment by gunnar.s...@gmail.com
on 2 Jun 2013 at 8:12
Thanks Frederik, that's working well.
Original comment by Groenvel...@gmail.com
on 28 Jul 2013 at 7:42
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!
Original comment by mory...@gmail.com
on 6 Aug 2013 at 10:32
Attachments:
[deleted comment]
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?
Original comment by bertsche...@gmail.com
on 7 Oct 2013 at 11:37
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).
Original comment by mory...@gmail.com
on 7 Oct 2013 at 11:40
Thanks it worked. Had to put the files in C:\Python though, the space in
"C:\Program Files\..." was also messing up the cmd.
Original comment by bertsche...@gmail.com
on 7 Oct 2013 at 1:19
Original issue reported on code.google.com by
michael....@gmail.com
on 3 May 2012 at 5:04