|
|
|
|
Strumenti |
21-09-2018, 11:40 | #1 |
Senior Member
Iscritto dal: Oct 2007
Messaggi: 1224
|
aiuto per una modifica di uno script...
Ciao a tutti, ho bisogno di un aiuto per uno scrip di TagScanner (https://www.xdlab.ru/en/), un freeware per la modifica dei tags e per la catalogazione di file mp3: non so se sia la sezione giusta, spero di sì (non me ne intendo molto di cose di PC, scusatemi...
) Una delle sue caratteristiche è quella di poter generare un file .html con alcune informazioni dei files, contenuti in una o più cartelle: "purtroppo" le info prodotte non sono quelle che vorrei; questi infatti sono le etichette delle colonnne di output di default del programma: # Artist Title Track Album Year Genre Length Bitrate Codec Io invece vorrei queste (in qeust'ordine): Filename Artist Title Length Bitrate Size Album Disc Track Year Picture Channels Di seguito riposto il file che "bisognerebbe in qualche modo modificare": io non me ne intendo assolutamente, e dopo aver provato a fare qualche cambiamento/aggiunta a... "naso" (vanvera) ci ho rinunciato, ma credo che fra di vi qualcuno possa sicuramente modificarlo nel modo da me voluto. ===================================== # Tagscanner export script $file_name TrackList.htm $file_notes Simple html table $file_encoding utf-8 $file_writebom 1 $file_ishtml 1 $document_open <html> <head> <meta name="generator" content="TagScanner 5.1"> <meta http-equiv="content-Type" content="text/html; charset=UTF-8"> <title>TagScanner Extended PlayList</title> <style type="text/css"> body { background: #e8f1f7; font-family : verdana, arial, helvetica; color: #000 } a { color: #3333ff; text-decoration: none } a:hover { color: #ff4500; text-decoration: underline } td { font-size: 8pt; padding: 2px } hr { color: black } .theader { background : #6699ff ; color: #fff ; font-weight: bold } .tmaintable { background : none } .teven { background : #fbfcfd; color : #000 } .todd { background : #ffffff; color : #000 } .digits { color: #0032de ; font-weight: bold } .al { color: #3333ff } .al:hover { color: #3333ff;text-decoration: underline } </style> </head> <body topmargin="0" leftmargin="0"> <hr width="100%" noshade size="1"> <table border="0" cellspacing="0" cellpadding="2" width="99%" align="center"> <tr><td> Total tracks number: <span class="digits">%_totalfiles%</span><br> Total tracks length: <span class="digits">%_totallength%</span><br> Total tracks size: <span class="digits">%_totalsize%</span> </td></tr></table> <hr width="100%" noshade size="1"> <table class="tmaintable" border="0" cellpadding="3" width="99%" align="center" cellspacing="1"> <!-- table header --> <tr class="theader"> <td>#</td> <td>Artist</td> <td>Title</td> <td>Track</td> <td>Album</td> <td>Year</td> <td>Genre</td> <td>Length</td> <td>Bitrate</td> <td>Codec</td> </tr> $select %_index%,0 <tr class="t%_even_odd%"> <td>%_counter%</td> <td>%artist%</td> <td>%title%</td> <td>%track%</td> <td>%album%</td> <td>%year%</td> <td>%genre%</td> <td>%_length%</td> <td>%_bitrate%</td> <td>%_codec%</td> </tr> $endselect <!-- table footer --> <tr class="theader"> <td>#</td> <td>Artist</td> <td>Title</td> <td>Track</td> <td>Album</td> <td>Year</td> <td>Genre</td> <td>Length</td> <td>Bitrate</td> <td>Codec</td> </tr> </table> <hr width="100%" noshade size="1"> List generated with <a href="http://www.xdlab.ru">%_version%</a> <br><br></body></html> $document_close ======================================== Grazie davvero moltissimo a chi mi aiuterà. |
21-09-2018, 12:33 | #2 |
Senior Member
Iscritto dal: May 2005
Messaggi: 8685
|
In rosso le sezioni da modificare, devi modificare ordine e variabili. Devi cercare sul manuale (https://xdlab.ru/files/ts_manual.pdf) a quali variabili corrispondono i valori, ad esempio "Size" potrebbe essere semplicemente %size% ma vedo variabili con l'underscore come %_codec% quindi verifica prima.
P.S. Size non lo vedo proprio nel manuale, c'è %_filesize% e %_filesize_bytes% giusto per fare un esempio Codice:
# Tagscanner export script $file_name TrackList.htm $file_notes Simple html table $file_encoding utf-8 $file_writebom 1 $file_ishtml 1 $document_open <html> <head> <meta name="generator" content="TagScanner 5.1"> <meta http-equiv="content-Type" content="text/html; charset=UTF-8"> <title>TagScanner Extended PlayList</title> <style type="text/css"> body { background: #e8f1f7; font-family : verdana, arial, helvetica; color: #000 } a { color: #3333ff; text-decoration: none } a:hover { color: #ff4500; text-decoration: underline } td { font-size: 8pt; padding: 2px } hr { color: black } .theader { background : #6699ff ; color: #fff ; font-weight: bold } .tmaintable { background : none } .teven { background : #fbfcfd; color : #000 } .todd { background : #ffffff; color : #000 } .digits { color: #0032de ; font-weight: bold } .al { color: #3333ff } .al:hover { color: #3333ff;text-decoration: underline } </style> </head> <body topmargin="0" leftmargin="0"> <hr width="100%" noshade size="1"> <table border="0" cellspacing="0" cellpadding="2" width="99%" align="center"> <tr> <td> Total tracks number: <span class="digits">%_totalfiles%</span><br> Total tracks length: <span class="digits">%_totallength%</span><br> Total tracks size: <span class="digits">%_totalsize%</span> </td> </tr> </table> <hr width="100%" noshade size="1"> <table class="tmaintable" border="0" cellpadding="3" width="99%" align="center" cellspacing="1"> <!-- table header --> <tr class="theader"> <td>#</td> <td>Artist</td> <td>Title</td> <td>Track</td> <td>Album</td> <td>Year</td> <td>Genre</td> <td>Length</td> <td>Bitrate</td> <td>Codec</td> </tr> $select %_index%,0 <tr class="t%_even_odd%"> <td>%_counter%</td> <td>%artist%</td> <td>%title%</td> <td>%track%</td> <td>%album%</td> <td>%year%</td> <td>%genre%</td> <td>%_length%</td> <td>%_bitrate%</td> <td>%_codec%</td> </tr> $endselect <!-- table footer --> <tr class="theader"> <td>#</td> <td>Artist</td> <td>Title</td> <td>Track</td> <td>Album</td> <td>Year</td> <td>Genre</td> <td>Length</td> <td>Bitrate</td> <td>Codec</td> </tr> </table> <hr width="100%" noshade size="1"> List generated with <a href="http://www.xdlab.ru">%_version%</a> <br><br> </body> </html> $document_close ========================================
__________________
. Thread Ufficiali: EasyCrypt ~ Old Files Manager ~ OSD Clock The real me is no match for the legend . Ultima modifica di x_Master_x : 21-09-2018 alle 12:36. |
21-09-2018, 15:09 | #3 |
Senior Member
Iscritto dal: Oct 2007
Messaggi: 1224
|
Ciao e grazie mille per la cortese risposta (sono uno dei primissimi estimatori del tuo mitico OSDClock!).
Purtroppo la mia ignoranza in materia non conosce confini, per cui ti devo chiedere una cosa che può sembrare ovvia... non ho capito se e cosa devo vedere nel manuale pdf, perchè il tuo P.S. mi ha confuso.... In sostanza, copio e sovrascrivo tutto quello che hai messo nel riquadro, o devo ancora fare.... delle "cose"? E se sì, cosa di preciso? Scusami, e grazie ancora. |
21-09-2018, 16:31 | #4 |
Senior Member
Iscritto dal: May 2005
Messaggi: 8685
|
Mi ricordo di chi usa i miei programmi
Tu vuoi usare esempio Channels, nel file originale che hai scritto non c'è. Nel manuale cerchi quella parola e troverai: Codice:
%_channels% --> Number of channels in the track (mono/stereo/etc). Returns the number of channels in text form; returns the strings "mono" and "stereo" instead of numbers "1" and "2". Codice:
<!-- table header --> <tr class="theader"> <td>Channels</td> </tr> $select %_index%,0 <tr class="t%_even_odd%"> <td>%_channels%</td> </tr> $endselect <!-- table footer --> <tr class="theader"> <td>Channels</td> </tr> Codice:
<!-- table header --> <tr class="theader"> <td>Channels</td> <td>Filename</td> </tr> $select %_index%,0 <tr class="t%_even_odd%"> <td>%_channels%</td> <td>%filename%</td> </tr> $endselect <!-- table footer --> <tr class="theader"> <td>Channels</td> <td>Filename</td> </tr>
__________________
. Thread Ufficiali: EasyCrypt ~ Old Files Manager ~ OSD Clock The real me is no match for the legend . Ultima modifica di x_Master_x : 21-09-2018 alle 16:58. |
21-09-2018, 17:56 | #5 |
Senior Member
Iscritto dal: Oct 2007
Messaggi: 1224
|
Grazie ancora, e complimenti per la pazienza!
Ho provato un po' a "pasticciare", ma purtroppo niente da fare... inoltre i ... "3 blocchi scritti in rosso" non... "combiaciano", nel senso che nel secondo ci sono degli underscore.... per cui sono proprio perso! Ho dovuto poi reinstallare il software perchè non "prendeva" più il file modificato, e nemmeno quello originale salvato prima! Credo che l'unica soluzione sarebbe avere il file da copincollare direttamente su quello originario (soluzione drastica, a prova di Patrick!)... perdona la franchezza, ma è quello che mi sento di scrivere a questo punto! P.S.: mi sono accorto che ho messo "channels" che non mi serve, e "size" è di sicuro "filesize", se hai trovato quel nome (io uso il software in italiano, e ho tradotto "a mente" le varie intestazioni, senza controllare la reale corrispondenza). |
22-09-2018, 09:42 | #6 |
Senior Member
Iscritto dal: May 2005
Messaggi: 8685
|
Codice:
# Tagscanner export script $file_name TrackList.htm $file_notes Simple html table $file_encoding utf-8 $file_writebom 1 $file_ishtml 1 $document_open <html> <head> <meta name="generator" content="TagScanner 5.1"> <meta http-equiv="content-Type" content="text/html; charset=UTF-8"> <title>TagScanner Extended PlayList</title> <style type="text/css"> body { background: #e8f1f7; font-family : verdana, arial, helvetica; color: #000 } a { color: #3333ff; text-decoration: none } a:hover { color: #ff4500; text-decoration: underline } td { font-size: 8pt; padding: 2px } hr { color: black } .theader { background : #6699ff ; color: #fff ; font-weight: bold } .tmaintable { background : none } .teven { background : #fbfcfd; color : #000 } .todd { background : #ffffff; color : #000 } .digits { color: #0032de ; font-weight: bold } .al { color: #3333ff } .al:hover { color: #3333ff;text-decoration: underline } </style> </head> <body topmargin="0" leftmargin="0"> <hr width="100%" noshade size="1"> <table border="0" cellspacing="0" cellpadding="2" width="99%" align="center"> <tr> <td> Total tracks number: <span class="digits">%_totalfiles%</span><br> Total tracks length: <span class="digits">%_totallength%</span><br> Total tracks size: <span class="digits">%_totalsize%</span> </td> </tr> </table> <hr width="100%" noshade size="1"> <table class="tmaintable" border="0" cellpadding="3" width="99%" align="center" cellspacing="1"> <!-- table header --> <tr class="theader"> <td>#</td> <td>Filename</td> <td>Artist</td> <td>Title</td> <td>Length</td> <td>Bitrate</td> <td>Filesize</td> <td>Album</td> <td>Disc</td> <td>Track</td> <td>Year</td> <td>Cover</td> </tr> $select %_index%,0 <tr class="t%_even_odd%"> <td>%_counter%</td> <td>%filename%</td> <td>%artist%</td> <td>%title%</td> <td>%_length%</td> <td>%_bitrate%</td> <td>%_filesize%</td> <td>%album%</td> <td>%disc%</td> <td>%track%</td> <td>%year%</td> <td>%hascover%</td> </tr> $endselect <!-- table footer --> <tr class="theader"> <td>#</td> <td>Filename</td> <td>Artist</td> <td>Title</td> <td>Length</td> <td>Bitrate</td> <td>Filesize</td> <td>Album</td> <td>Disc</td> <td>Track</td> <td>Year</td> <td>Cover</td> </tr> </table> <hr width="100%" noshade size="1"> List generated with <a href="http://www.xdlab.ru">%_version%</a> <br><br> </body> </html> $document_close ========================================
__________________
. Thread Ufficiali: EasyCrypt ~ Old Files Manager ~ OSD Clock The real me is no match for the legend . |
22-09-2018, 10:23 | #7 |
Senior Member
Iscritto dal: Oct 2007
Messaggi: 1224
|
WOWWW! Quando si dice che un'immagine vale più di mille parole
Complimenti davvero, e scusa la ..."testardaggine da ignorantone" che ho... Funziona a meraviglia, e adesso con un secondo esempio posso pure cimentarmi in altre "varianti", giusto per capire come funziona l'arcano marchingegno composto da tutte quelle righe ostrogote... Caffè "virtuale" pagato! |
22-09-2018, 10:31 | #8 |
Senior Member
Iscritto dal: May 2005
Messaggi: 8685
|
Di nulla
__________________
. Thread Ufficiali: EasyCrypt ~ Old Files Manager ~ OSD Clock The real me is no match for the legend . |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 23:39.