[SOLVED] Subitles Download

Get help with Sick Beard and report/discuss bugs

Re: [SOLVED] Subitles Download

Postby DisasteR » Tue May 03, 2011 5:31 pm

For those who use the git version of sickbeard i have forked and add a simple subtitle management.

here is the code : https://github.com/DisasteR/Sick-Beard

it only works for linux i think.
you need to install periscope too.

To configure the language selection is hardcoded so you must edit the lines :
Code: Select all
2405:    sublist = subdl.listSubtitles(epObj.location, ['fr', 'en'])
2422:    foundSubtitle = subdl.attemptDownloadSubtitle(sublist, ['fr', 'en'])

in sickbeard/webserve.py

how it work :

My mod add a link "get sub" for each ep on the episode list page (displayShow page) in the action column.
the mod search with periscope for available subs and try to download one (with language order preference)
when you have the subtitle corresponding to the ep the link does not appear.

if you have a sub for one language but youy want to retry download for you first prefered language just delete te sub or rename it
and redo the "get sub" action.

Status :

i keep up the code with the main version.

Participate :

If someone is interested about making a better inplementation of my work dont hesitate to fork and propose me to pull your change.

Current Ideas :
  • Configure language on Configuration Page
  • Option to download all selected languages and rename the file like : <ep_name>-<language>.srt
  • for linux : make a symlink <ep_name>.srt on <ep_name>-<prefered_language>.srt

Have Fun.
DisasteR
 
Posts: 16
Joined: Sun Oct 17, 2010 11:46 am

Re: [SOLVED] Subitles Download

Postby rascalli » Tue May 03, 2011 10:37 pm

Thanks for this , looks very good
Maybe you can tell people why to use this instead of : viewtopic.php?f=9&t=1286 ???
NL newsserver starting €44,40 a year

Image

Hope you will use my refereal link
rascalli
 
Posts: 4913
Joined: Tue Aug 10, 2010 2:26 pm

Re: [SOLVED] Subitles Download

Postby DisasteR » Wed May 04, 2011 12:41 am

rascalli wrote:Thanks for this , looks very good
Maybe you can tell people why to use this instead of : viewtopic.php?f=9&t=1286 ???


Cause with this modification you can get subtitles at any time.
And because generally when you just download a new ep the sub file is rarely available.
DisasteR
 
Posts: 16
Joined: Sun Oct 17, 2010 11:46 am

Re: [SOLVED] Subitles Download

Postby Ezzemo » Wed May 11, 2011 2:27 am

Hei,

good work!

how can I install your changes to the midgetspy master Sickbeard and keep track of that?
or it is only posible to have your changes by using git clone of your sickbeard master?

Thanks.

Ezzemo
Ezzemo
 
Posts: 4
Joined: Sun Apr 03, 2011 1:33 am

Re: [SOLVED] Subitles Download

Postby mainstream » Thu Jan 12, 2012 2:49 pm

Thanks for this tips all, but this gave me the following error (running ubuntu 11.10)

Code: Select all
mainstream@dopamine-pc:~/.sickbeard$ sudo apt-get install periscope-gnome
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 periscope-gnome : Depends: python-nautilus (>= 1.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
mainstream
 
Posts: 2
Joined: Thu Jan 12, 2012 2:40 pm

Re: [SOLVED] Subitles Download

Postby rascalli » Fri Jan 13, 2012 11:45 am

@Ezzomo , you can not merge them together .. you can use one of them
NL newsserver starting €44,40 a year

Image

Hope you will use my refereal link
rascalli
 
Posts: 4913
Joined: Tue Aug 10, 2010 2:26 pm

Re: [SOLVED] Subitles Download

Postby tgrim1 » Fri Jan 13, 2012 3:10 pm

I cant get periscope to work in windows for the life of me....
tgrim1
 
Posts: 4
Joined: Fri Dec 30, 2011 11:55 am

Re: [SOLVED] Subitles Download

Postby rspike12 » Fri Feb 03, 2012 5:11 am

DisasteR wrote:For those who use the git version of sickbeard i have forked and add a simple subtitle management.

here is the code : https://github.com/DisasteR/Sick-Beard

it only works for linux i think.
you need to install periscope too.

To configure the language selection is hardcoded so you must edit the lines :
Code: Select all
2405:    sublist = subdl.listSubtitles(epObj.location, ['fr', 'en'])
2422:    foundSubtitle = subdl.attemptDownloadSubtitle(sublist, ['fr', 'en'])

in sickbeard/webserve.py

how it work :

My mod add a link "get sub" for each ep on the episode list page (displayShow page) in the action column.


so if I understand I have to edit the file webserve.py changing fr with it (cause I'm italian) in the two lines
and then replace the file webserve.py in my /Applications/SickBeard folder
and restarting SickBeard I'll see the new icon "get sub".
Is it right?

3 questions?
1 Where does the subtitle file go after downloading?
I have the Series tv folder in that way:
for example Lost/Season 1/Pilot S01E01.mkv
How Can I tell to download the sub in the correct pathway?

2 What about downloading different version of srt (like 720p version).
I have many tv series in HD and I've to download 720p resync of the sub

3 Is there any chance to let Sickbeard renaming the file sub like It does for the episode files?
rspike12
 
Posts: 10
Joined: Fri Apr 08, 2011 9:06 am

Re: [SOLVED] Subitles Download

Postby DisasteR » Fri Feb 03, 2012 9:05 am

https://github.com/SickBeard-Team/SickBeard

mainstream wrote:Thanks for this tips all, but this gave me the following error (running ubuntu 11.10)
Code: Select all
The following packages have unmet dependencies:
 periscope-gnome : Depends: python-nautilus (>= 1.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Install the package python-periscope

rspike12 wrote:1 Where does the subtitle file go after downloading?
I have the Series tv folder in that way:
for example Lost/Season 1/Pilot S01E01.mkv
How Can I tell to download the sub in the correct pathway?

the srt is downloded near the video file.

rspike12 wrote:2 What about downloading different version of srt (like 720p version).
I have many tv series in HD and I've to download 720p resync of the sub

Use the original filename to search for subs. (no auto rename at post processing)

rspike12 wrote:3 Is there any chance to let Sickbeard renaming the file sub like It does for the episode files?

I only rename my Eps when the season it's completed the srt are renamed too.


I haven't updated my git repo for a while... you can take a look at https://github.com/SickBeard-Team/SickBeard
another fork with subtitle management.
DisasteR
 
Posts: 16
Joined: Sun Oct 17, 2010 11:46 am

Re: [SOLVED] Subitles Download

Postby Adeiko » Sat Apr 14, 2012 7:38 am

So, i've checking forks and well, there are 3 main ones with subtitle suport (i think at least)

lad1337
https://github.com/lad1337/Sick-Beard
SickBeard-Team
https://github.com/SickBeard-Team/SickBeard
DisasteR
https://github.com/DisasteR/Sick-Beard

Also the Diaoul one:

https://github.com/Diaoul/Sick-Beard

So.. Somebody can help me with what's the best fork with subtitle support?
Adeiko
 
Posts: 7
Joined: Wed Dec 07, 2011 5:24 am

PreviousNext

Return to Support / Bug Reports

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests