subliminal icon indicating copy to clipboard operation
subliminal copied to clipboard

Subliminal examples (cron jobs, right click menu, etc.)

Open Diaoul opened this issue 8 years ago • 13 comments

It could be nice to give some examples on how to use subliminal at a higher level with integration to GUIs for examples. What I have in mind:

  • [x] Nautilus right click menu that show on video mime-types (extra: and folders containing such files, at a maximum level of 1 subfolder right_clicked/*/video_file.mkv)
  • [ ] Windows right click menu like Nautilus
  • [ ] Cron job making use of --age

See #480

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Diaoul avatar Aug 06 '15 19:08 Diaoul

i would be glad to help you with this! Was thinking of integrating it with 3rd party players so that you have a service on right click on a video along the lines "Run X player with subtitles". There are some problems; .. the library is currently not working for me. i'll open some issues.

badescuga avatar Aug 09 '15 16:08 badescuga

I've played a little bit with Nautilus with nautilus-python and it's possible to accomplish really cool things. However, subliminal requires a minimum of configuration to be used in such a way so a configuration file containing at least the wanted languages is mandatory. As we're talking GUI here that also mean a GTK window has to be displayed for configuration purposes.

Diaoul avatar Aug 21 '15 23:08 Diaoul

i've made a small script for using subliminal as a service. The installation is not user-friendly but it does the job. Will improve on it, maybe make an installer. https://github.com/badescuga/easysub

badescuga avatar Aug 23 '15 08:08 badescuga

Nautilus integration is here: 43244600056ed52454318e56c48ae4715b98698f

Diaoul avatar Aug 26 '15 22:08 Diaoul

You can translate the nautilus menu here: https://www.transifex.com/subliminal/subliminal/ It's always nicer when the menu is in the same language as the interface :star2:

Diaoul avatar Aug 27 '15 15:08 Diaoul

Here's a script I use to download subtitles using the Windows right click menu: https://github.com/ajknol/Subliminal-Windows-right-click-menu

ajknol avatar Feb 04 '16 16:02 ajknol

Cool! Thanks for pointing it out. I wanted to do something like that with innosetup for all-in-one package.

Diaoul avatar Feb 04 '16 17:02 Diaoul

What do you mean by "Cron job making use of --age"? Because I use the cronjob below, but i'm guessing you don't mean an example like that do you?

10 */6 * * * /volume1/.@plugins/AppCentral/python/bin/subliminal --addic7ed **** **** --opensubtitles **** **** download -l nl -a 4w -m 80 -v -v /volume1/Series/ >> /volume1/Series/subliminal.log 2>&1

Wesleyl89 avatar Mar 22 '16 20:03 Wesleyl89

That's à perfectly fine use of subliminal. Thanks.

Diaoul avatar Mar 22 '16 22:03 Diaoul

Then I might add that I use the dev branch, because with the master branch it takes like half an hour to scan a 2TB folder worth of episodes on my NAS. You don't want to do that every 6 hours unless you like letting your NAS (or whatever machine) do so much redundant work. On the dev branch it takes about 2 min. when I set the age to 4w.

Wesleyl89 avatar Mar 23 '16 06:03 Wesleyl89

@ajknol I used your scripts to get the right click menu to work, but for some reason it added it to the registry of the VLC video extensions and I did not see it in the context menu. For me to see it with videofiles I had to do the registry edits in the MPC-HC registry (my default player). I modified the script a bit and did some tinkering with this as a result. dl-subliminal

I could export that registry edit, but I have no idea how to make it generic so that it can be installed on different machines. Maybe someone else can use it. The zip contains the slightly modified search .bat from ajknol, export of my regedit and the icons. scripts.zip

Wesleyl89 avatar Mar 23 '16 21:03 Wesleyl89

I know this is an old thread, but I just can't get this to work automatically. Let me state where my files are located and I'm hoping someone can give me a quick fix for this.

I have Windows 10 I have python added to my system environment (can use from anywhere) I have Subliminal installed here: C:\Users\username\Documents\GitHub\subliminal I have my TV shows organized on a couple of drives that I'd like it to scan. Examples: G:\Brooklyn Nine-Nine\Season 1* J:\TV\True Detective\Season 1*

What command do I need to use (in Task Scheduler?) to get Subliminal to scan these drives every now and then and pull down EN (english) subs in .srt format for the episodes that don't have them? Most episodes, the subs are usually online by the next day (if not sooner) but there are some that aren't for a few days so....I guess an age variable is needed? Can someone walk me through each step in setting up that task?

Any help would be appreciated. I've been doing it semi-manually using the right-click option mentioned above, which works great...but automation is desired. :)

Thanks so much.

zerosquared avatar Jan 30 '19 16:01 zerosquared

@ajknol I used your scripts to get the right click menu to work, but for some reason it added it to the registry of the VLC video extensions and I did not see it in the context menu. For me to see it with videofiles I had to do the registry edits in the MPC-HC registry (my default player). I modified the script a bit and did some tinkering with this as a result. dl-subliminal

I could export that registry edit, but I have no idea how to make it generic so that it can be installed on different machines. Maybe someone else can use it. The zip contains the slightly modified search .bat from ajknol, export of my regedit and the icons. scripts.zip

Can you explain it in detail how you managed to do it? I am still not seeing anything when right clicking?

ajaypilaniyaap avatar May 25 '19 11:05 ajaypilaniyaap