subliminal
subliminal copied to clipboard
Subliminal examples (cron jobs, right click menu, etc.)
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.
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.
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.
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
Nautilus integration is here: 43244600056ed52454318e56c48ae4715b98698f
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:
Here's a script I use to download subtitles using the Windows right click menu: https://github.com/ajknol/Subliminal-Windows-right-click-menu
Cool! Thanks for pointing it out. I wanted to do something like that with innosetup for all-in-one package.
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
That's à perfectly fine use of subliminal. Thanks.
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.
@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.
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
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.
@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.
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?