SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-16-2012, 01:32 AM
silkshadow's Avatar
silkshadow silkshadow is offline
Sage Expert
 
Join Date: Oct 2004
Location: Philippines
Posts: 550
XBMC subtitle downloader port (or any) request

I don't know if any Sage developer has any interest to look into this but I thought I'd put this out there.

XBMC has an open source addon for looking for subtitles: https://github.com/amet/script.xbmc.subtitles/downloads. I really have no idea if its even possible, but could this be ported to SageTV?

Really any way to download a subtitle within SageTV (or automatically is the dream) for imported media would be a dozen cherries on top of a sundae.

Thanks for reading the request!
Reply With Quote
  #2  
Old 11-25-2012, 04:47 AM
silkshadow's Avatar
silkshadow silkshadow is offline
Sage Expert
 
Join Date: Oct 2004
Location: Philippines
Posts: 550
Just wanted to come in and say after a few hours of work today I figured out how to get this working using JREkiwi's excellent External apps plugin and Subliminall.

This is not for the no-command line crowd as its far from click and play. You need to do the following, this is for windows. This is far easier to do on Linux and is probably old hat to you if you are using that OS, I can't help with Mac.

1) Get Subliminal working, this is the hard part, after that its easy.
  • Download and install Python 2.7 at http://python.org/download/releases/
  • Add the directory where you installed python to the Path environment. This is an option in the install, make sure you choose it, otherwise you can do this manually.
  • Download and install Distribute. Due disclosure, I did this on x64 clients. There is a Distribute for x86 clients but people seem to prefer PIP on x86. Download Distribute from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
  • Download BeautifulSoup http://www.crummy.com/software/Beaut.../bs3/download/, I used v3.2. Unzip it to a directory, this has no installer.
  • Download subliminal. This is the static page for longevity: https://subliminal.readthedocs.org but you should get the zipball from Github. Then unzip it to a directory.
  • Open an elevated command prompt at the dir you extracted beautifulsoup to and type:
    Code:
    python setup.py install
  • Open an elevated command prompt at the dir you extracted Subliminal to and type:
    Code:
    python setup.py install

2) Ok now create a batch file for External apps to use, for example:
Code:
@echo off 
"c:\python27\python.exe" "c:\python27\scripts\subliminal" -l en %1
Replace the path with the correct path where you installed Python.

3) Configure External apps to run this batch file. Set it to "wait"

4) Open a video file and choose external apps to run it.

Been testing this for a couple of hours and it works! I have an issue that has something to do with this process above that rendered 2 scrapers nonworking (a Dutch subtitle site and a Polish one) but the rest works and its more than good enough. Something to do with XMLI or something that is beyond me. Honestly all of this above was beyond me but piecing things together from google and this actually worked.

If anyone knows a better or easier way to depoly this (I have 2 more clients to do that I am in no rush to do this again on), that would be appreciated. Also, if you know what I did wrong with the XMLI thingy so that 2 of the scrapers don't work, I would like to know just for my education on this.

Edit: Opus, if you're around on what I know is a holiday where you are, could you change my thread title to "Subtitles for video files using JREkiwi's External Apps"? Thanks and happy holidays to you!

Last edited by silkshadow; 11-25-2012 at 04:59 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin port request: MP Time Jump owilsky SageTV v7 Customizations 0 08-14-2010 11:38 AM
Feature Request: Audio Stream & Subtitle Controls! lobosrul SageTV Software 4 11-25-2008 04:20 PM
Subtitle Downloader bcjenkins The SageTV Community 0 08-21-2008 10:18 AM
FEATURE REQUEST: Native MKV Subtitle support kato SageTV Software 0 04-04-2008 04:19 PM
Port Failure & Possible Feature Request Trepidati0n SageTV Placeshifter 4 04-13-2007 11:45 AM


All times are GMT -6. The time now is 11:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.