Ga naar inhoud


Testers gevraagd voor drtic ondertitel zoek/convert/install script


Aanbevolen berichten

Geplaatst:

Zoals ik een ander topic al staat ben ik, geinspireerd door het script van Dennis, bezig een generiek script te maken waarmee je ondertitels voor Drtic kan zoeken en downloaden. Ik heb nu een versie die werkt mbv een (mijn) webserver, en wil idealiter een oplossing zonder webserver.

 

Om toch te zien hoe het loopt, en of het haalbaar is om via mn webserver te draaien wil ik graag wat mensen hebben die testen. Ik hoor ook graag feedback over hoe dingen evt. anders kunnen.

 

Shoenix.

 

Benodigdheden:

- Een DB met Gemini (andere distros werken ook, maar dan moet het Flexmenue wat aangepast worden)

- Flexmenue 0.94 geinstalleerd op DB

- Drtic om de ondertitels te kunnen gebruiken op de DB

- Een internet aansluiting

 

Installatie:

- Kopieer het 'subtitle.sh' bestand uit het archief in de bijlage in '/var/script/' op de DB (voor niet Gemini gebruikers, kies een mooie plaats)

- Geef het script op de DB de juiste permissies :

 

Citaat:
chmod 755 /var/script/subtitle.sh

 

- Voeg het volgende toe aan /var/tuxbox/config/shellexec.conf:

 

Citaat:

MENU=ONDERTITELS

ACTION=&Shoenix Ondertitel Download,(input l='Titel: @@@@@@@@@@@@@' t='Film Titel' d=' ' c=25 k=0 f=0 | /var/script/subtitle.sh ),De lijst wordt gegenereerd ...

ENDMENU

 

Let op: De 'ACTION' regel moet op 1 regel staan!

 

Gebruiksaanwijzing

- Start de Flexmenue plugin

- Kies het 'ONDERTITELS' menu

- Kies de 'Shoenix Ondertitel Download' Optie

- Voer de titel (of een deel van de titel) in

- Kies de gewenste titel

- Sluit Flexmenue

- Start Drtic

- Kies de ondertitel.

 

Note: Sommige ondertitels zijn opgesplitst in meerdere delen. De convertor zal alle delen afzonderlijk converteren. Wil je alles in 1, kies dan de _ALL versie van het ondertitel bestand in Drtic.

 

Bekende problemen:

- Er is nog geen opschoning van ondertitels vanuit het menu mogelijk

- Soms schiet Flexmenue gelijk door resulterend in een bericht dat de titel niet is ingevoerd.

- Wat jullie vinden <img src="/forums/images/graemlins/smile.gif" alt="" />

1128623-subtitle.tar.gz


  • Reacties 75
  • Aangemaakt
  • Laatste reactie

Beste reacties in dit onderwerp

Beste reacties in dit onderwerp

Geplaatst:

~ > find / -name shellexec.conf

/var/script/shellexec.conf

/var/tuxbox/config/shellexec.conf

 

kan het ook in /var/tuxbox/config/shellexec.conf ?

 

groeten

Geplaatst:

Bij mij (Gemini 2.6) staat ie in /etc/tuxbox/config, /var/tuxbox is daar een symlink naar /etc/tuxbox. Ik zou in jouw geval dus zeggen : Pak de /var/tuxbox/config/shellexec.conf.

Geplaatst:

Het download werkt wel maar in het flexmenu zie ik de titels niet maar ik kan wel de lijst van R G G B en 1 t/m 9

er blind een selecteren en downloaden.

 

(in /var/script/subtitle.sh heb ik DRTICDIR="/var/tuxbox/Drtic/tit" )

Geplaatst:

Kan je wat beter aangeven wat je ziet ? Wat ik begrijp is dat je kan zoeken alleen de lijst die je krijgt is leeg, als je vervolgens een kiest download hij hem wel en kan je hem wel in Drtic zien. Klopt dit ?

Geplaatst:

Ja inderdaad het script werkt goed maar toont niet de titels

als je er een selecteerd (blind) download hij gewoon netjes

 

very promising <img src="/forums/images/graemlins/xyxthumbs.gif" alt="" />

Geplaatst:

Kan jij eens via telnet op de box het volgende commando geven :

 

Citaat:
# echo jones | /var/script/subtitle.sh

 

Hierna even met <ctrl-c> shellexec onderbreken en de bestanden sturen :

 

Citaat:

/tmp/subtitle.lst

/tmp/subtitle.inc

 

En weet je zeker dat er geen carriage returns in subtitle.sh staan ? (bijv. door een ascii ftp naar je DB)

Geplaatst:

ik weet niet of dit helpt:

 

cat /tmp/subtitle.lst|grep -v -- '-2#Too_Many_Results'|while read line; do

DBID="`echo $line|awk -F \# '{print $1}'`"

echo $DBID >> /tmp/debug.txt

 

levert:

/var/tuxbox/Drtic/tit > cat /tmp/debug.txt

11946

9113

1111

9291

9829

9833

9945

9959

10132

10199

8667

9152

9883

12517

8665

9153

9884

12520

8666

8679

12518

6337

6794

9292

Geplaatst:

/var/tuxbox/Drtic/tit > echo jones | /var/script/subtitle.sh

/var/script/subtitle.sh: 47: tr: not found

/var/script/subtitle.sh: 47: tr: not found

/var/script/subtitle.sh: 47: tr: not found

/var/script/subtitle.sh: 47: tr: not found

/var/script/subtitle.sh: 47: tr: not found

/var/script/subtitle.sh: 47: tr: not found

/var/script/subtitle.sh: 47: tr: not found

/var/script/subtitle.sh: 47: tr: not found

/var/script/subtitle.sh: 47: tr: not found

Geplaatst:

/bin > cat /tmp/subtitle.*

MENU=Ondertitels

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=11946&filename=Along_Came_Jones" -O /tmp/Along_Came_Jones.tar.gz ; /var/script/subtitle.sh install "/tmp/Along_Came_Jones.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=9113&filename=Bobby_Jones_Stroke_of_Genius" -O /tmp/Bobby_Jones_Stroke_of_Genius.tar.gz ; /var/script/subtitle.sh install "/tmp/Bobby_Jones_Stroke_of_Genius.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=1111&filename=Bridget_Joness_Diary" -O /tmp/Bridget_Joness_Diary.tar.gz ; /var/script/subtitle.sh install "/tmp/Bridget_Joness_Diary.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=9291&filename=Bridget_Joness_Diary_-_V2" -O /tmp/Bridget_Joness_Diary_-_V2.tar.gz ; /var/script/subtitle.sh install "/tmp/Bridget_Joness_Diary_-_V2.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=9829&filename=Bridget_Jones:_The_Edge_of_Reason" -O /tmp/Bridget_Jones:_The_Edge_of_Reason.tar.gz ; /var/script/subtitle.sh install "/tmp/Bridget_Jones:_The_Edge_of_Reason.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=9833&filename=Bridget_Jones:_The_Edge_of_Reason_-_V2" -O /tmp/Bridget_Jones:_The_Edge_of_Reason_-_V2.tar.gz ; /var/script/subtitle.sh install "/tmp/Bridget_Jones:_The_Edge_of_Reason_-_V2.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=9945&filename=Bridget_Jones:_The_Edge_of_Reason_-_V3" -O /tmp/Bridget_Jones:_The_Edge_of_Reason_-_V3.tar.gz ; /var/script/subtitle.sh install "/tmp/Bridget_Jones:_The_Edge_of_Reason_-_V3.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=9959&filename=Bridget_Jones:_The_Edge_of_Reason_-_V4" -O /tmp/Bridget_Jones:_The_Edge_of_Reason_-_V4.tar.gz ; /var/script/subtitle.sh install "/tmp/Bridget_Jones:_The_Edge_of_Reason_-_V4.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=10132&filename=Bridget_Jones:_The_Edge_of_Reason_-_V5" -O /tmp/Bridget_Jones:_The_Edge_of_Reason_-_V5.tar.gz ; /var/script/subtitle.sh install "/tmp/Bridget_Jones:_The_Edge_of_Reason_-_V5.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=10199&filename=Bridget_Jones:_The_Edge_of_Reason_-_V6" -O /tmp/Bridget_Jones:_The_Edge_of_Reason_-_V6.tar.gz ; /var/script/subtitle.sh install "/tmp/Bridget_Jones:_The_Edge_of_Reason_-_V6.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=8667&filename=Indiana_Jones_and_the_Last_Crusade" -O /tmp/Indiana_Jones_and_the_Last_Crusade.tar.gz ; /var/script/subtitle.sh install "/tmp/Indiana_Jones_and_the_Last_Crusade.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=9152&filename=Indiana_Jones_and_the_Last_Crusade_-_V2" -O /tmp/Indiana_Jones_and_the_Last_Crusade_-_V2.tar.gz ; /var/script/subtitle.sh install "/tmp/Indiana_Jones_and_the_Last_Crusade_-_V2.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=9883&filename=Indiana_Jones_and_the_Last_Crusade_-_V3" -O /tmp/Indiana_Jones_and_the_Last_Crusade_-_V3.tar.gz ; /var/script/subtitle.sh install "/tmp/Indiana_Jones_and_the_Last_Crusade_-_V3.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=12517&filename=Indiana_Jones_and_the_Last_Crusade_-_V4" -O /tmp/Indiana_Jones_and_the_Last_Crusade_-_V4.tar.gz ; /var/script/subtitle.sh install "/tmp/Indiana_Jones_and_the_Last_Crusade_-_V4.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=8665&filename=Indiana_Jones_and_the_Raiders_of_the_Lost_Ark" -O /tmp/Indiana_Jones_and_the_Raiders_of_the_Lost_Ark.tar.gz ; /var/script/subtitle.sh install "/tmp/Indiana_Jones_and_the_Raiders_of_the_Lost_Ark.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=9153&filename=Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_-_V2" -O /tmp/Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_-_V2.tar.gz ; /var/script/subtitle.sh install "/tmp/Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_-_V2.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=9884&filename=Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_-_V3" -O /tmp/Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_-_V3.tar.gz ; /var/script/subtitle.sh install "/tmp/Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_-_V3.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=12520&filename=Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_-_V4" -O /tmp/Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_-_V4.tar.gz ; /var/script/subtitle.sh install "/tmp/Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_-_V4.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=8666&filename=Indiana_Jones_and_the_Temple_of_Doom" -O /tmp/Indiana_Jones_and_the_Temple_of_Doom.tar.gz ; /var/script/subtitle.sh install "/tmp/Indiana_Jones_and_the_Temple_of_Doom.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

ACTION=&,(wget "http://dreambox:dreambox01@www.shoenix.net/cgi-bin/subtitle.cgi?download=8679&filename=Indiana_Jones_and_the_Temple_of_Doom_-_V2" -O /tmp/Indiana_Jones_and_the_Temple_of_Doom_-_V2.tar.gz ; /var/script/subtitle.sh install "/tmp/Indiana_Jones_and_the_Temple_of_Doom_-_V2.tar.gz") | sh,Wachten a.u.b! Wordt gedownload ...

11946#Along_Came_Jones

9113#Bobby_Jones_Stroke_of_Genius

1111#Bridget_Joness_Diary

9291#Bridget_Joness_Diary_-_V2

9829#Bridget_Jones:_The_Edge_of_Reason

9833#Bridget_Jones:_The_Edge_of_Reason_-_V2

9945#Bridget_Jones:_The_Edge_of_Reason_-_V3

9959#Bridget_Jones:_The_Edge_of_Reason_-_V4

10132#Bridget_Jones:_The_Edge_of_Reason_-_V5

10199#Bridget_Jones:_The_Edge_of_Reason_-_V6

8667#Indiana_Jones_and_the_Last_Crusade

9152#Indiana_Jones_and_the_Last_Crusade_-_V2

9883#Indiana_Jones_and_the_Last_Crusade_-_V3

12517#Indiana_Jones_and_the_Last_Crusade_-_V4

8665#Indiana_Jones_and_the_Raiders_of_the_Lost_Ark

9153#Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_-_V2

9884#Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_-_V3

12520#Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_-_V4

8666#Indiana_Jones_and_the_Temple_of_Doom

8679#Indiana_Jones_and_the_Temple_of_Doom_-_V2

12518#Indiana_Jones_and_the_Temple_of_Doom_-_V3

6337#Mr._Jones

6794#Osmosis_Jones

9292#Osmosis_Jones_-_V2

Geplaatst:

Ok, da's duidelijk, tr wordt niet gevonden.

 

Welk image gebruik jij ? En heb jij op je DB een '/usr/bin/tr' welke een symlink is naar busybox ?

 

Als quick fix kan je subtitle.sh aanpassen en de regel :

 

 

Citaat:
TITLE="`echo $line|awk -F \# '{print $2}'|tr '_' ' '`"

 

vervangen door:

 

Citaat:
TITLE="`echo $line|awk -F \# '{print $2}'|sed 's/_/ /g'`"

 

Wellicht dat sed namelijk wel in jouw image aanwezig is.

 

 

Geplaatst:

/tmp > ls /usr/bin/tr

ls: /usr/bin/tr: No such file or directory

 

gemini 270

Geplaatst:

werkt nu super thx <img src="/forums/images/graemlins/xyxthumbs.gif" alt="" />

Maak een account aan of log in om te reageren

Je moet een lid zijn om een reactie te kunnen achterlaten

Account aanmaken

Registreer voor een nieuwe account in onze community. Het is erg gemakkelijk!

Registreer een nieuwe account

Inloggen

Heb je reeds een account? Log hier in.

Nu inloggen
  • Wie is er online   0 leden

    • Er zijn geen geregistreerde gebruikers deze pagina aan het bekijken
×
×
  • Nieuwe aanmaken...