Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

run as CLI or daemon .. without GTK+ #20

Open
piotrasd opened this issue Sep 30, 2012 · 24 comments
Open

run as CLI or daemon .. without GTK+ #20

piotrasd opened this issue Sep 30, 2012 · 24 comments
Assignees

Comments

@piotrasd
Copy link

Hi
There is any possibility run subget in CLI or daemon mode ?

Im ask because i want use this great app on NAS server, im install eveything but i get error
ImportError: No module named pango

But this is module from GTK+ :(

There is any way to run without GTK+ ? or can you provide this function ??
That will be great for all servers/NAS where grafic interface is no needed.

Thanks
Best Regards

@keskad
Copy link
Owner

keskad commented Oct 2, 2012

Thank you for your report. I will try to improve subget command line interface.

@piotrasd
Copy link
Author

piotrasd commented Oct 2, 2012

Ohh will be great !!!!! Thanks

Wys³ane z iPhone'a

Dnia 2 pa¼ 2012 o godz. 16:23 "Damian Kêska" notifications@github.com
napisa³(a):

Thank you for your report. I will try to improve subget command line
interface.

Reply to this email directly or view it on
GitHubhttps://github.com//issues/20#issuecomment-9072488.

@keskad
Copy link
Owner

keskad commented Oct 2, 2012

Subget have shell interface but as i know there are some bugs i must fix to get it back to work.

@ghost ghost assigned keskad Oct 2, 2012
@keskad
Copy link
Owner

keskad commented Oct 3, 2012

Fixed in 1.7.3

@keskad keskad closed this as completed Oct 3, 2012
@piotrasd
Copy link
Author

piotrasd commented Oct 3, 2012

Hi sorry for stupid question but please let me know how from shell run subget for searching subtitles ?
some example line

http://o7.no/RBaF0j

@keskad keskad reopened this Oct 3, 2012
@keskad
Copy link
Owner

keskad commented Oct 3, 2012

I reopened the issue due to some gtk dependency problems with plugins.

So, here are examples:
subget.py -l pl -c -q Prince\ of\ Persia/Prince\ of\ Persia.avi

@piotrasd
Copy link
Author

piotrasd commented Oct 3, 2012

yes, in this way im try but without success
try consider add scaning folder for movies ... because run subget for everyone movie file if somebody have large library could be time-consuming :) hihi

@keskad
Copy link
Owner

keskad commented Oct 3, 2012

I created wiki page for shell interface:
https://github.com/webnull/subget/wiki/Using-shell-commands-to-download-subtitles

@keskad
Copy link
Owner

keskad commented Oct 3, 2012

And so you can specify multiple files:
eg. subget file1.avi file2.mp4 file3.ogv

@piotrasd
Copy link
Author

piotrasd commented Oct 3, 2012

( 'avi' 'rmvb' 'mov' 'mp4' 'mpg' 'mkv' 'mpeg' 'wmv' ) im take this from napi.sh script (script in bash for download subtitles from napiprojekt)

Please maybe look in code how this script scan directory, maybe will be useful
http://pastebin.com/wn2dfGeg

http://o7.no/RBmDa3
http://o7.no/Rdtl3S

@keskad
Copy link
Owner

keskad commented Oct 3, 2012

I know how to scan directory also with subdirectories (recursive) but if i may implement this function i would do this maybe in next week - not now.

@piotrasd
Copy link
Author

piotrasd commented Oct 3, 2012

great and big thanks :) for your working

@keskad
Copy link
Owner

keskad commented Oct 3, 2012

I think i should rewrite code responsible for calling plugins to download subtitles. This is necessary to finish scanning directories function.

@piotrasd
Copy link
Author

any news ?

@keskad
Copy link
Owner

keskad commented Oct 12, 2012

Subget is working from shell but i dont have time to implement any new functions at now.

@piotrasd
Copy link
Author

sorry im even once over console mode dont get any subtitles for movies :(
for me this dont work :(

i get this
http://pastebin.com/zkXLRhtP

or over other method
http://pastebin.com/vn98LUee

@piotrasd
Copy link
Author

any progress ? changes ?

@keskad
Copy link
Owner

keskad commented Dec 23, 2012

I fixed some bugs in CLI. You have to test new versions and tell me whats wrong.

@piotrasd
Copy link
Author

piotrasd commented Jan 2, 2013

Sorry still nothing :(,
here is debug

Without choose language (then i see subtitles ...)
http://pastebin.com/KDbnY7n6

When i choose language then only show 2 line and subget - stop :(
http://pastebin.com/dt4zp26x

I will be very graceful for fix that add downloading subtitles over movie folder (not for one file like now)
If you have some donation button - please let me know where i can find ... THX

@keskad
Copy link
Owner

keskad commented Jan 2, 2013

So, i will debug it, remove these GTK errors and fix that crash. I think it should be finished until Sunday.
Thank you for your bug report.

@keskad
Copy link
Owner

keskad commented Jan 5, 2013

To bypass missing GTK library messages in plugins you should disable those plugins in configuration file.

[plugins]
disabled = daemonize,dialog,videoplayers,console,bus

@keskad
Copy link
Owner

keskad commented Jan 5, 2013

subget-working

@piotrasd
Copy link
Author

ok im setup config like you say, and ok latest error dissapear, but i get new one :/

root@unRAID:/usr/lib/python2.6/site-packages# subget -l pl -q -c /mnt/user/movies/Dream\ House\ (2011)/Dream\ House.mkv
Subget is loading in "en_US" language.
Traceback (most recent call last):
File "/usr/bin/subget", line 2241, in
SubgetMain.main()
File "/usr/bin/subget", line 306, in main
self.listLanguages()
File "/usr/bin/subget", line 259, in listLanguages
images = os.listdir(self.subgetOSPath+"/usr/share/subget/icons/flags")
OSError: [Errno 2] No such file or directory: '/usr/share/subget/icons/flags'

@keskad
Copy link
Owner

keskad commented Jan 18, 2013

Your subget installation is not complete. Please download right package from http://s1.paczkownia.kablownia.org or from GIT.

If you are installing subget from GIT you should use three commands:
./setup.py build
./setup.py install
./setup.py install_data # i think that you didnt that last one

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants