Seite 2 von 3 ErsteErste 123 LetzteLetzte
Ergebnis 11 bis 20 von 26
  1. #11
    Senior Mitglied Avatar von RickX
    Registriert seit
    30.05.2022
    Ort
    NRW
    Beiträge
    304
    Thanks (gegeben)
    134
    Thanks (bekommen)
    150
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Vu+ Uno 4K SE (OpenATV 7.0)
     
     
    Box 2:
    Vu+ Duo 2 (VTI 15)
     
     
    In the script there are several quotes missing.
    Try to change all cat ${nfo} to cat “${nfo}”

    … using normal “ sign… the forum editor or the iPad changes it to typographical quotes…
    Geändert von RickX (12.08.2022 um 14:22 Uhr)

    •   Alt Advertising

       

  2. #12
    Avatar von Papi2000
    Registriert seit
    20.04.2013
    Beiträge
    24.824
    Thanks (gegeben)
    4679
    Thanks (bekommen)
    9077
    Total Downloaded
    596,61 MB
    Total Downloaded
    596,61 MB
    ReceiverDanke
    Box 1:
    GB Q4K-SC / UE4K-SC / UE4K-C
     
     
    Box 2:
    GigaBlue Q-SSC / Q+-SSC
     
     
    Box 3:
    DM900uhd-SS / Vu+Duo
     
     
    Box 4:
    ZGemma H7/H9 SF8008
     
     
    Box 5:
    diverse andere . . .
     
     
    So you mean starting with that line:
    Code:
    ...
    VAR_TITLE=$(cat ${NFO} | grep "<title>" | awk -F "title" '{print $2}' | tr -d '></')
    to
    Code:
    ...
    VAR_TITLE=$(cat '${NFO}' | grep "<title>" | awk -F "title" '{print $2}' | tr -d '></')
    and so on?

    A search and replace all in notepad++ for
    Code:
    cat ${NFO}
    'cat ${NFO}'
    would do the same?

    Or should the sign used at <title> be used for replacement?
    Geändert von Papi2000 (12.08.2022 um 14:56 Uhr) Grund: Typo
    Grüßle
    Ralf
    ---------------------------------------------
    Gigablue Quad4K-mixed, UE4K, Trio4K, Quad_Plus-SSC, UE_Plus-SC, X2/X3-SC, UltraUE-SC, ...
    Astra 19.2E UniCable & KabelBW, oATV/teamBlue
    (u.a.: DM900uhd,Vu+Duo,ZGemma H9Twin & H7S), PC-DVB-S/C/T, Xtreamer, BDP5200, Philips 24PFS4022/12, 65OLED855/12,UE32C5700, RPi3+
    ---- Einen Receiver kann sich jeder kaufen - Eine stabile E²-Box muß man sich verdienen! ----



  3. #13
    Anfänger
    Registriert seit
    30.08.2014
    Beiträge
    24
    Thanks (gegeben)
    16
    Thanks (bekommen)
    8
    Total Downloaded
    209,89 MB
    Total Downloaded
    209,89 MB
    ReceiverDanke
    First thank you all to take a moment to look to this .

    I've added in top of the script this code to see what's happening

    Code:
    trap 'echo "# $BASH_COMMAND"' DEBUG
    Then tried single quote

    Code:
    # VAR_TITLE=$(cat '${NFO}' | grep "<title>" | awk -F "title" '{print $2}' | tr -d '></')
    stat: can't stat '/media/hdd/Videos/Bond/Quantum': No such file or directory
    double quote

    Code:
    # VAR_TITLE=$(cat "${NFO}" | grep "<title>" | awk -F "title" '{print $2}' | tr -d '></')
    cat: can't open '/media/hdd/Videos/Bond/Quantum': No such file or directory
    Using WinSCP internal editor and terminal
    Geändert von johnharris (12.08.2022 um 16:07 Uhr)

  4. #14
    Avatar von Pike_Bishop
    Registriert seit
    11.02.2020
    Ort
    here and there
    Beiträge
    2.424
    Thanks (gegeben)
    642
    Thanks (bekommen)
    1648
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Mutant HD2400
     
     
    Box 2:
    VU Ultimo 4K
     
     
    Box 3:
    Octagon SF8008
     
     
    Box 4:
    Gigablue Quad 4K
     
     
    Box 5:
    VDR
     
     
    Hi,

    I'll watch it today but later and don't worry, we'll get it right.
    as @RickX wrote doublequotes for all Variables named NFO are correct, but you need also doublequotes for the loop so like that;
    Code:
    for NFO in "$RESULTS" ; do
    and i think we didn't need cat because grep can do the same.
    as example you have in the script;
    Code:
    VAR_TITLE=$(cat "${NFO}" | grep "<title>" | awk -F "title" '{print $2}' | tr -d '></')
    but this works too;
    Code:
    VAR_TITLE=$(grep "<title>" "${NFO}" | awk -F "title" '{print $2}' | tr -d '></')
    look at the output in the picture;
    Movie Browser (Extra Script (XBMC nfo Dateien zu database))-title_command_output.jpg

    EDIT !
    I don't know if WinSCP Editor is a good Editor to write linux scripts -> is it a linux compatible editor ?
    i use in windows 10 always notepad++ for linux scripts (this editor you can configure for linux editing, it is important that you use a linux compatible editor.



    regards
    Pike
    Geändert von Pike_Bishop (12.08.2022 um 18:47 Uhr)

  5. Thanks johnharris bedankten sich
  6. #15
    Avatar von Pike_Bishop
    Registriert seit
    11.02.2020
    Ort
    here and there
    Beiträge
    2.424
    Thanks (gegeben)
    642
    Thanks (bekommen)
    1648
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Mutant HD2400
     
     
    Box 2:
    VU Ultimo 4K
     
     
    Box 3:
    Octagon SF8008
     
     
    Box 4:
    Gigablue Quad 4K
     
     
    Box 5:
    VDR
     
     
    Hi,

    Ok i have now rewritten the script quite a bit because there were a lot of errors in it.
    I changed also the for loop to a while read loop because as it was, this only worked with a single nfo file with several nfo files the script failed completely.

    It is now also the case that no matter which file is created, e.g. the nfo_list.txt or the temporary files such as the output or the output.bak and also the database etc., these
    all end up in the media directory (variable MEDIA_DIR).

    I have tested the script and it now works perfectly here.
    You have to change the variable MEDIA_DIR in line 4.to suit your circumstances

    here it is;
    Code:
    #!/bin/sh
    
    ##### Pfad zum Medien Ordner anpassen (Customize path to the media folder) #####
    MEDIA_DIR="/media/hdd/movie/_videos/"
    NFO_TXT=${MEDIA_DIR}nfo_list.txt
    find ${MEDIA_DIR} -name '*.nfo' > $NFO_TXT
    
    while read NFO ; do
    	NFO_BASE=$(basename "${NFO}" .nfo)
    	NFO_DIR=$(dirname "${NFO}")
    	VAR_TITLE=$(grep "<title>" "${NFO}" | awk -F "title" '{print $2}' | tr -d '></')
    	TSTAMP=$(stat -c "%Y" "${NFO}")
    	VAR_RUNTIME=$(grep "<runtime>" "${NFO}" | awk -F "runtime" '{print $2}' | tr -d '></')
    	VAR_RATING=$(grep "<rating>" "${NFO}" | awk -F "rating" '{print $2}' | tr -d '></')
    	VAR_DIRECTOR=$(grep "<director>" "${NFO}" | awk -F "director" '{print $2}' | tr -d '></')
    	VAR_ACTOR=$(grep -A1 "<actor>" "${NFO}" | awk -F "<name>" '{print $2}' | grep -v "^$" | tr -d '\n')
    	VAR_GENRE=$(grep "<genre>" "${NFO}" | awk -F "genre" '{print $2}' | tr -d '></')
    	VAR_YEAR=$(grep "<year>" "${NFO}" | awk -F "year" '{print $2}' | tr -d '></')
    	VAR_COUNTRY=$(grep "<country>" "${NFO}" | awk -F "country" '{print $2}' | tr -d '></')
    	VAR_PLOT=$(grep "<plot>" "${NFO}" | awk -F "plot" '{print $2}' | tr -d '></')
    
    	if egrep -wl 'thumb aspect' "${NFO}" 1>/dev/null ; then
    		VAR_POSTER=$(grep -A1 "<thumb aspect=\"poster\"" "${NFO}" |  awk -F 'preview=\"' '{print $2}' | \
    		grep -v "^$" |awk -F '</thumb' '{print $1}' | head -n1 | awk -F ">" '{print $1}' | tr -d '"')
    	elif egrep -wl 'thumb preview' "${NFO}" 1>/dev/null ; then
    			VAR_POSTER=$(grep -A1 "</runtime>" "${NFO}" |  awk -F '"' '{print $2}' | grep -v "^$")
    			#VAR_POSTER=$(grep -A1 "<thumb preview=\"poster\"" "${NFO}" |  awk -F 'preview=\"' '{print $2}' | \
    			#grep -v "^$" |awk -F '</thumb' '{print $1}' | head -n1 | awk -F ">" '{print $1}' | tr -d '"')
    	else
    			VAR_POSTER="http://cf2.imgobject.com/t/p/w154/default_poster.png"
    	fi
    
    	if egrep -wl 'thumb preview' "${NFO}" 1>/dev/null ; then
    		VAR_FANART=$(grep -A1 "<fanart>" "${NFO}" |  awk -F '"' '{print $2}' | grep -v "^$")
    	else
    		VAR_FANART="http://cf2.imgobject.com/t/p/w1280/default_backdrop.png"
    	fi
    
    	##### Dateitypen anpassen - hier nur AVI, M4V und MKV (Adjust file types - here avi, m4v and mkv only) #####
    	if [ -f "$NFO_DIR/$NFO_BASE.avi" ] ; then
    		VAR_FILE=$NFO_DIR/$NFO_BASE.avi
    	elif [ -f "$NFO_DIR/$NFO_BASE.m4v" ] ; then
    		VAR_FILE=$NFO_DIR/$NFO_BASE.m4v
    	elif [ -f "$NFO_DIR/$NFO_BASE.mkv" ] ; then
    		VAR_FILE=$NFO_DIR/$NFO_BASE.mkv
    	else
    		VAR_FILE="ERRORFILE"
    	fi
    	
    	##### Auf leere Werte pruefen (Check for empty Values) #####
    	if [ -z "$VAR_RUNTIME" ] ; then
    		VAR_RUNTIME="00"
    	fi
    	
    	if [ -z "$VAR_RATING" ] ; then
    		VAR_RATING="0"
    	fi
    	
    	if [ -z "$VAR_DIRECTOR" ] ; then
    		VAR_DIRECTOR="No Director found"
    	fi
    	
    	if [ -z "$VAR_ACTOR" ] ; then
    		VAR_ACTOR="No Actor found"
    	fi
    	
    	if [ -z "$VAR_GENRE" ] ; then
    		VAR_GENRE="No Genre"
    	fi
    	
    	if [ -z "$VAR_YEAR" ] ; then
    		VAR_YEAR="1970"
    	fi
    	
    	if [ -z "$VAR_COUNTRY" ] ; then
    		VAR_COUNTRY="No Country found"
    	fi
    	
    	if [ -z "$VAR_PLOT" ] ; then
    		VAR_PLOT="No Plot found"
    	fi
    
    
    	if [ "$VAR_FILE" = "ERRORFILE" ] ; then
    		echo -e "\nNO MEDIA FOUND WITH TITLE;\n$VAR_TITLE !\n"
    	else
    		echo ${VAR_TITLE}":::"${VAR_FILE}":::"${TSTAMP}":::"${VAR_RUNTIME}":::"${VAR_RATING}":::"${VAR_DIRECTOR}":::"${VAR_ACTOR}":::"${VAR_GENRE}":::"${VAR_YEAR}":::"${VAR_COUNTRY}":::"${VAR_PLOT}":::"${VAR_POSTER}":::"${VAR_FANART}":::Movie:::" >> ${MEDIA_DIR}output
    	fi
    done < $NFO_TXT
    
    sed -i -e '/ERRORFILE/d' ${MEDIA_DIR}output
    sed 's#</name>#,#g' ${MEDIA_DIR}output > ${MEDIA_DIR}output.bak
    sed -e 's/w500/w154/g' ${MEDIA_DIR}output.bak > ${MEDIA_DIR}database.bak
    sed -e 's/w780/w1280/g' ${MEDIA_DIR}database.bak > ${MEDIA_DIR}database
    sed -i -e 's#::::::#:::http://cf2.imgobject.com/t/p/w154/default_poster.png:::#g' ${MEDIA_DIR}database
    rm ${MEDIA_DIR}output
    rm ${MEDIA_DIR}output.bak
    rm ${MEDIA_DIR}database.bak
    
    
    exit

    regards
    Pike
    Geändert von Pike_Bishop (13.08.2022 um 00:10 Uhr)

  7. Thanks johnharris bedankten sich
  8. #16
    Anfänger
    Registriert seit
    30.08.2014
    Beiträge
    24
    Thanks (gegeben)
    16
    Thanks (bekommen)
    8
    Total Downloaded
    209,89 MB
    Total Downloaded
    209,89 MB
    ReceiverDanke
    Hi

    What can i say ?
    Thank you very much Pike for your work, you did a good job rewriting this script in a better way.
    Here's the result on one of the movie we're talking about

    Code:
    Quantum of Solace:::/media/hdd/Videos/Bond/Quantum of Solace.mkv:::1660130868:::106:::0:::Marc Forster:::Daniel Craig,Olga Kurylenko,Mathieu Amalric,Judi Dench,Giancarlo Giannini,Jeffrey Wright,Gemma Arterton,David Harbour,Jesper Christensen,Anatole Taubman,Rory Kinnear,Tim Pigott-Smith,JoaquÃ*n CosÃ*o,Glenn Foster,Paul Ritter,Stana Katic,Lucrezia Lante della Rovere,Neil Jackson,Oona Chaplin,Rachel McDowall,Sarah Hadland,Alexandra Prusa,Brandon Jovanovich,Fernando Guillén Cuervo,Jesús Ochoa,Simon Kassianides,Guillermo del Toro,Alfonso Cuarón,Eva Green,Derek Lea,Tatiana Lavrentieva,Laila Alina Reischer,:::Aventure Action Thriller Crime:::2008:::United Kingdom:::Même s’il lutte pour ne pas faire de sa dernière mission une affaire personnelle, James Bond est décidé Ã* traquer ceux qui ont forcé Vesper Ã* le trahir. En interrogeant Mr White, 007 et M apprennent que l’organisation Ã* laquelle il appartient est bien plus complexe et dangereuse que tout ce qu’ils avaient imaginé… Bond croise alors la route de la belle et pugnace Camille, qui cherche Ã* se venger elle aussi. Elle le conduit sur la piste de Dominic Greene, un homme d’affaires impitoyable et un des piliers de la mystérieuse organisation. Au cours d’une mission qui l’entraîne en Autriche, en Italie et en Amérique du Sud, Bond découvre que Greene manÅ“uvre pour prendre le contrôle de l’une des ressources naturelles les plus importantes au monde en utilisant la puissance de l’organisation, et en manipulant la CIA et le gouvernement britannique…:::https://image.tmdb.org/t/p/w154/bKOyotUkapx8dZ2WOOnuoIEBr7l.jpg:::https://image.tmdb.org/t/p/w1280/3CqMIX3ZlrD0pU3fpBL6DM0Cneb.jpg:::Movie:::
    Even filenames with extended characters (and i have a lot) are recogniized now

    Code:
    Opération Tonnerre:::/media/hdd/Videos/Bond/Operation Tonnerre.mkv:::1660130868:::130:::0:::Terence Young:::Sean Connery,Claudine Auger,Adolfo Celi,Luciana Paluzzi,Rik Van Nutter,Guy Doleman,Molly Peters,Martine Beswick,Bernard Lee,Desmond Llewelyn,Lois Maxwell,Roland Culver,Earl Cameron,Paul Stassino,Rose Alba,Philip Locke,George Pravda,Michael Brennan,Leonard Sachs,Edward Underdown,Reginald Beckwith,Harold Sanderson,Jack Gwillim,Suzy Kendall,Mitsouko,Philip Stone,Kevin McClory,Anthony Dawson,:::Aventure Action Thriller:::1965:::United Kingdom:::L&apos;organisation criminelle SPECTRE détourne un avion de l&apos;OTAN transportant deux bombes atomiques et réclame une rançon au gouvernement britannique. L&apos;agent secret James Bond est envoyé aux Bahamas Ã* la recherche de Domino, la sÅ“ur du commandant Derval, qui pilotait le Vulcan. Celui-ci a en fait été tué et remplacé par un sosie. 007 découvre que l&apos;instigateur de l&apos;opération est un dénommé Emilio Largo, un homme riche et cruel passionné par les requins.:::https://image.tmdb.org/t/p/w154/8dEXGawwI6aBUrh3RWKAQes9DAL.jpg:::https://image.tmdb.org/t/p/w1280/7mn0IFuByr9bsmlprotTdeO71Km.jpg:::Movie:::
    Next challenge will be extracting shows as they're not structured the same, not a big deal as i have now the method, was stucking on filenames (more than one word and extended characters)

    Bravo Pike

    Regards

  9. Thanks Pike_Bishop bedankten sich
  10. #17
    Avatar von Pike_Bishop
    Registriert seit
    11.02.2020
    Ort
    here and there
    Beiträge
    2.424
    Thanks (gegeben)
    642
    Thanks (bekommen)
    1648
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Mutant HD2400
     
     
    Box 2:
    VU Ultimo 4K
     
     
    Box 3:
    Octagon SF8008
     
     
    Box 4:
    Gigablue Quad 4K
     
     
    Box 5:
    VDR
     
     
    Hi johnharris,

    thanks for your feedbach, that sounds good.


    Edit !
    moved this thread from plugins to the script section because it's a better place for it.
    in german;
    Thread von Plugins in die Script Abteilung verschoben, ist der bessere Platz dafür.


    regards
    Pike
    Geändert von Pike_Bishop (13.08.2022 um 21:10 Uhr)

  11. Thanks johnharris bedankten sich
  12. #18
    Avatar von Pike_Bishop
    Registriert seit
    11.02.2020
    Ort
    here and there
    Beiträge
    2.424
    Thanks (gegeben)
    642
    Thanks (bekommen)
    1648
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Mutant HD2400
     
     
    Box 2:
    VU Ultimo 4K
     
     
    Box 3:
    Octagon SF8008
     
     
    Box 4:
    Gigablue Quad 4K
     
     
    Box 5:
    VDR
     
     
    Hi johnharris,

    New version., further improved (shorter and more efficient);

    Code:
    #!/bin/sh
    
    ##### Pfad zum Medien Ordner anpassen (Customize path to the media folder). #####
    MEDIA_DIR=/media/hdd/movie/_videos
    NFO_TXT=$MEDIA_DIR/nfo_list.txt
    find $MEDIA_DIR -name '*.nfo' | sort -f > $NFO_TXT
    
    while read NFO ; do
    	NFO_BASE=$(basename "${NFO}" .nfo)
    	NFO_DIR=$(dirname "${NFO}")
    	
    	##### Fuer alle 3stelligen Dateitypen wie z.b: *.avi (For all 3-digit file types like e.g: *.avi). #####
    	if [[ $(find $NFO_DIR -name "${NFO_BASE}".??? ! -name "*.nfo") ]] ; then
    		#VAR_FILE="$(find $NFO_DIR -name "${NFO_BASE}".* ! -name "*.nfo")"
    		VAR_FILE="$(find $NFO_DIR -name "${NFO_BASE}".??? ! -name "*.nfo")"
    	else
    		echo -e "\nNO MEDIUM FOUND SUCH AS;\n$NFO_DIR/"$NFO_BASE" !\n" && continue
    	fi
    	
    	VAR_TITLE=$(grep "<title>" "${NFO}" | awk -F "title" '{print $2}' | tr -d '></')
    	TSTAMP=$(stat -c "%Y" "${NFO}")
    	VAR_RUNTIME=$(grep "<runtime>" "${NFO}" | awk -F "runtime" '{print $2}' | tr -d '></')
    	VAR_RATING=$(grep "<rating>" "${NFO}" | awk -F "rating" '{print $2}' | tr -d '></')
    	VAR_DIRECTOR=$(grep "<director>" "${NFO}" | awk -F "director" '{print $2}' | tr -d '></')
    	VAR_ACTOR=$(grep -A1 "<actor>" "${NFO}" | awk -F "<name>" '{print $2}' | grep -v "^$" | tr -d '\n')
    	VAR_GENRE=$(grep "<genre>" "${NFO}" | awk -F "genre" '{print $2}' | tr -d '></')
    	VAR_YEAR=$(grep "<year>" "${NFO}" | awk -F "year" '{print $2}' | tr -d '></')
    	VAR_COUNTRY=$(grep "<country>" "${NFO}" | awk -F "country" '{print $2}' | tr -d '></')
    	VAR_PLOT=$(grep "<plot>" "${NFO}" | awk -F "plot" '{print $2}' | tr -d '></')
    
    	if egrep -wl 'thumb aspect' "${NFO}" 1>/dev/null ; then
    		VAR_POSTER=$(grep -A1 "<thumb aspect=\"poster\"" "${NFO}" |  awk -F 'preview=\"' '{print $2}' | \
    		grep -v "^$" |awk -F '</thumb' '{print $1}' | head -n1 | awk -F ">" '{print $1}' | tr -d '"')
    	elif egrep -wl 'thumb preview' "${NFO}" 1>/dev/null ; then
    			VAR_POSTER=$(grep -A1 "</runtime>" "${NFO}" |  awk -F '"' '{print $2}' | grep -v "^$")
    			#VAR_POSTER=$(grep -A1 "<thumb preview=\"poster\"" "${NFO}" |  awk -F 'preview=\"' '{print $2}' | \
    			#grep -v "^$" |awk -F '</thumb' '{print $1}' | head -n1 | awk -F ">" '{print $1}' | tr -d '"')
    	else
    			VAR_POSTER="http://cf2.imgobject.com/t/p/w154/default_poster.png"
    	fi
    
    	if egrep -wl 'thumb preview' "${NFO}" 1>/dev/null ; then
    		VAR_FANART=$(grep -A1 "<fanart>" "${NFO}" |  awk -F '"' '{print $2}' | grep -v "^$")
    	else
    		VAR_FANART="http://cf2.imgobject.com/t/p/w1280/default_backdrop.png"
    	fi
    	
    	##### Auf leere Werte pruefen (Check for empty Values). #####
    	if [ -z "$VAR_RUNTIME" ] ; then VAR_RUNTIME=00 ; fi
    	if [ -z "$VAR_RATING" ] ; then VAR_RATING=0 ; fi
    	if [ -z "$VAR_DIRECTOR" ] ; then VAR_DIRECTOR="No Director found" ; fi
    	if [ -z "$VAR_ACTOR" ] ; then VAR_ACTOR="No Actor found" ; fi
    	if [ -z "$VAR_GENRE" ] ; then VAR_GENRE="No Genre" ; fi
    	if [ -z "$VAR_YEAR" ] ; then VAR_YEAR=1970 ; fi
    	if [ -z "$VAR_COUNTRY" ] ; then VAR_COUNTRY="No Country found" ; fi
    	if [ -z "$VAR_PLOT" ] ; then VAR_PLOT="No Plot found" ; fi
    
    	echo -n ${VAR_TITLE}":::"${VAR_FILE}":::"${TSTAMP}":::"${VAR_RUNTIME}":::"${VAR_RATING}":::"${VAR_DIRECTOR}":::"${VAR_ACTOR}":::" >> $MEDIA_DIR/output
    	echo ${VAR_GENRE}":::"${VAR_YEAR}":::"${VAR_COUNTRY}":::"${VAR_PLOT}":::"${VAR_POSTER}":::"${VAR_FANART}":::Movie:::" >> $MEDIA_DIR/output
    done < $NFO_TXT
    
    sed -e 's#</name>#,#g' -e 's/w500/w154/g' -e 's/w780/w1280/g' $MEDIA_DIR/output > $MEDIA_DIR/database
    sed -i -e 's#::::::#:::http://cf2.imgobject.com/t/p/w154/default_poster.png:::#g' $MEDIA_DIR/database
    rm $MEDIA_DIR/output
    
    exit
    Now all movies with three-digit extension e.g: *.mkv should work, but you have to make sure that in MEDIA_DIR
    only the *.nfo files and the movies are, not e.g.: files with the movie name and the extension *.txt as example Quantum of Solace.txt.


    regards
    Pike
    Geändert von Pike_Bishop (16.08.2022 um 22:03 Uhr)

  13. #19
    Anfänger
    Registriert seit
    30.08.2014
    Beiträge
    24
    Thanks (gegeben)
    16
    Thanks (bekommen)
    8
    Total Downloaded
    209,89 MB
    Total Downloaded
    209,89 MB
    ReceiverDanke
    Hi,

    Will try your script when i come back home, i had to modify (in red) your script (not the last one) to fit exact format of the database

    Adding " min" to RUNTIME
    echo ${VAR_TITLE}":::"${VAR_FILE}":::"${TSTAMP}":::"${V AR_RUNTIME}"" min":::"${VAR_RATING}":::" ":::"${VAR_ACTOR}":::"${VAR_GENRE}":::"${VAR_YEAR} ":::"${VAR_COUNTRY}":::"${VAR_PLOT}":::"${VAR_POST ER}":::"${VAR_FANART}":::Movie:::Top:::unseen:::" >> ${MEDIA_DIR}output
    Readable form TSTAMP
    TSTAMP=$(stat -c "%y" "${NFO}")
    RATING with only 2 values

    VAR_RATING=$(grep -oE "<value>.{0,3}" "${NFO}" | head -1 | awk -F "value" '{print $2}' | tr -d '></')
    Still improving


    Another question regarding the original plugin, as the author passed away (rest in peace Kashmir) , is it legal (moral) to decompile an modify the plugin ?

    Regards

  14. #20
    Avatar von Pike_Bishop
    Registriert seit
    11.02.2020
    Ort
    here and there
    Beiträge
    2.424
    Thanks (gegeben)
    642
    Thanks (bekommen)
    1648
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Mutant HD2400
     
     
    Box 2:
    VU Ultimo 4K
     
     
    Box 3:
    Octagon SF8008
     
     
    Box 4:
    Gigablue Quad 4K
     
     
    Box 5:
    VDR
     
     
    Hi,

    Another question regarding the original plugin, as the author passed away (rest in peace Kashmir) , is it legal (moral) to decompile an modify the plugin ?
    i think no.


    regards
    Pike


Seite 2 von 3 ErsteErste 123 LetzteLetzte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:01 Uhr.
Powered by vBulletin® Version 4.2.5 (Deutsch)
Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.
Resources saved on this page: MySQL 5,00%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com