New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add subtitles support with Subliminal #185
Conversation
|
great addition! from what I saw, it works great but it didn't download the subtitles during the post processing. I guess that is because the subtitles are available only a few hours after the release of the episode. If it's the reason, maybe you could add an option to rescan automatically to check if the subtitle becomes available. Thanks for your work. |
|
Well, if no subtitles are available, subliminal won't write them ;)
This will require interraction with SB's database and some modifications to it. I'll look into it |
|
As long as you have an frequency pane you can always have it recheck for subtitles so that's awesome.
You might already have a few of these options but i'm just trying to help out :) |
|
There is also the issue of load on the subtitle services, eg for some episodes subtitles will never be available, for those episodes it might make sense to automatically check once a day for x days but not longer. |
|
The major problem here will be as tester22 said: load. Maybe testers22's rule could be more elaborated:
For example: check -> wait 1h -> check -> wait 2h -> check -> wait 4h -> check -> wait 8h -> check -> wait 16h -> check -> wait 24h -> check -> wait 24h -> ... Maybe we could do x = x² instead of x = 2*x and start at 2h : |
|
+1 This is a fantastic addition! |
|
I'll make another commit this week with the SUBTITLESFINDER thread that works as I said in my comment above or similarly. Expect another one in at least two weeks which will allow users to search for subtitles manually for an episode and pick the subtitle they want in a list of results. |
- SUBTITLESFINDER will search for subtitles periodically - Enabled support of python types in sqlite (date, datetime) - Added 4 columns to the database
|
Here it is. Automatic subtitles download |
|
well there is only 23 (if i recall correctly) total languages supported in the tvdb.. which are the only languages we support in sickbeard.. per tvdb api module: |
|
OpenSubtitles uses the full list of ISO 639: |
|
so your saying that one can request languages independently of languages that sb supports? i thought you used the languages that the tvshow was set to... |
|
I use languages set in the subtitles configuration page. Whatever the input is (2 characters long only though) I'll search for it in plugins (if available) |
|
Try it if you want :) |
| def run(self): | ||
| # TODO: Put that in the __init__ before starting the thread? | ||
| if not SUBTITLES_SUPPORTED or not sickbeard.USE_SUBTITLES: | ||
| logger.log(u'No subtitles support of subtitles support disabled', logger.DEBUG) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't there a small typo here: ... support or subtitles ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. I'll correct that
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, in fact, it contains the answer to the question "are subtitles supported in Sick-Beard?" not "has user enabled subtitles?"
If you have a better name, i'll take it ;)
|
@midgetspy anything you want modified before merging this? |
|
having a bug with this: This error disapears as soon as I go back to the normal, master version |
|
Try cloning my fork and run it from scratch, not from another SB repository. |
|
@neoflex also, send me the full debug log with that error please |
|
I'll try with a clean install. |
|
still the same bug with a clean install from your repo (but keeping my sickbeard.db and config.ini) |
|
jesus man use pastebin next time. flooding my phone. |
|
@neoflex can't reproduce the bug. If anyone else can please copy debug log and error message to pastebin and link here. |
|
Did you try on linux? I am using ubuntu 11.04. Here are my .db files, so you can try : I am not sure at all but I had the impression that the bug may happen with tv shows having a special character in their name (such as & ) If you can't reproduce this, I will guess that it is very specific of my configuration somehow. |
|
@neoflex IMO here is what you did :
Edit your sickbeard.db and remove all fields related to subtitles (3 in tv_episodes, 1 in tv_show). Also change the db version to 9 and run my fork again. |
|
In fact, the bug appears after adding a new show. I'll look into it, thanks |
|
I have a fork with subtitle support |
|
@Nyaran: That is fantastic. Works excactly as expected. And thank you so much for this, I have been missing it for so long. |
|
Flags icons and download all missing subtitles are pending features. About download multiple subtitles, I will check it when I can, but I think that works when I tried it. |
|
I can manually search for multiple subtitles under a show, that works. What I meant was if it was possible to have it search all shows for episodes that is missing subtitles once and for all. |
|
Yes, I want to add that feature soon ;) |
|
Oh, cool. |
|
I'm not sure if github has a section to create discussions, anyway I create this "issue" Pistachitos#1 |
|
Hey @midgetspy can you please give a status on this development ? |
|
Hi Gaetan, |
|
Hi, I try as specified above to know what encoding using Python but with the following command "sys.getfilesystemencoding ()" I get the following message: Traceback (most recent call last): Here is the link of Pasterbin, for info of Log and Python version If someone will have a solution. |
|
Can anyone tell me why this hasn't been merged yet? I searched this PR for @midgetspy comments, but couldn't find anything stating why this is closed but not merged? |
|
this repo is pretty much dead, there is still code in it we need to put into the main trunk. just one of the many things to do on a very long todo list |
|
@thezoggy thank you for that. Although I have to say, when you talk about "a very long todo list", I can't really think of anything major currently wrong with Sickbeard, besides subtitles for foreign people. But obviously different people have different needs. I just hope we get first-party subtitle support in the near future |
|
right now the main things are adding new providers / removing the old ones that are invalid. fix any issues with the new xbmc launch.. finish up the 1080i/p (web-dl/aired/rawhd) stuff. get back to finishing up the custom_torrent branch.. cleanup more of the ui/update libs/etc. then there is a whole laundry list of other things that i personally have planned but will prob never get around to coding |
|
@thezoggy Like I said, different people with different needs |
|
For others I can still recommend Nyarans fork for downloading subtitles. I just got back to watching Fringe, and started in the middle of season 3. One click on the "Search subtitles"-button and it downloaded all of the subtitles, and so far (aprox. 30 episodes later) all of them have been working great. |
|
@jonaskp does it differ in other ways besides the subtitle support? And did you try (and succeed) in merging the latest changes from origin back into the fork? |
|
@thezoggy : I'm sorry but are you suggesting that debbuging for XBMC and minor flaws in the UI might be more important than working on the subtitle feature ? That may sound impolite but are you, like @midgetspy, from an english speaking country? BTW: @JeanMertz which external tool are you using ? |
|
Right now I use https://code.google.com/p/auto-sub/ it works fine for me for tv shows. Perhaps running https://github.com/Diaoul/subliminal in the background would be even better (especially if you also want movie subtitles) |
|
@gaetan-petit being rude helps nobody in this matter.. While I do agree I personally would like to see some features be added sooner than others (1080p/subtitle support); It is their hard work, it are their countless hours that are being poured into this. It doesn't help to start flinging words like ethnocentrism around, because we could just aswell start throwing the word 'chauvinist' right back. I am not a native English speaker, however, I have adapted. All of this being said; I myself am a long ways away from being a skilled Python dev.. |
|
Subliminal is under some work currently and 0.7.0 will fix some issues and add a lot of features like better caching by using dogpile.cache. |
|
@JeanMertz:I don't know how it differs from the orginal fork of SickBeard. I have very little experience with Github, so merging it with the original fork is not something I have tried :-) |
|
Bonjour Diaoul, (puis-je m'exprimer en français ? Au besoin, je traduirai si cela peut-être utile à la communauté). J'ai installé subliminal sur mon serveur unraid 5.0-rc8a (PLUS), mais j'ai constaté que cette installation n'est pas "persistante". De plus, il s'avère que - contrairement à Couchpotato ou Sabnzbd - je suis contraint de garder ma console telnet active. Dès la fermeture, je perds la connexion avec la page Sickbeard-Diaoul... La console m'indique justement l'existence d'un dossier root/sickbeard-diaoul, que je suis incapable de retrouver physiquement. Voilà, où j'en suis après une semaine d'utilisation la combinaison unraid-sabnzbd-couchpotato-sickbeard-Plex, ou plutôt de tentative d'utilisation... Peut-être pourriez-vous m'orienter ? Quoi qu'il en soit, merci de l'attention que vous avez porté à mon message. |
|
Does it also work after renaming the episodes? |
|
Hello, I dont' use Subliminal anymore. It never worked, so I gave up. I now use separately Sickbeard (on unraid) and Sublight (on Windows). It seems easier to me, and it
Foot : les dernières infos sur le mercato sont sur la chaine Sports de Voila.fr http://sports.voila.fr/football/mercato-en-direct.html |
|
I want it because it runs on my Synology. At the moment I dropped the postprocessing. I search for subtitles using subliminal first and if I have the subtitles I do the manual postprocessing. However I want this to be automated. |
|
You can have subtitles support with mr-orange's fork of Sick-Beard. It uses subliminal and gives me great results. |
|
Yeah, but does this one also support torrents, because I have a branch now On Thursday, July 18, 2013, Antoine Bertin wrote:
|
|
Yes it does have torrent support |
|
I have a branch with only midgetspy master and subliminal support at my repo. |
Subtitles download:
Options:
Limitations:
Misc:
sys.path.append('lib')can be changed tosys.path.insert(0,"lib")to avoid conflict with installed libraries. You can even tweak all added libraries to add "lib." before every import. Bad hack IMO but if this is the only solution for some users...Try it!
Bug report
Please help me improving this feature, if you encounter a bug, do the following:
python -V)For encoding issues, add the following informations:
uname -a)sys.getdefaultencoding()sys.getfilesystemencoding()locale.getpreferredencoding()