Page 1 of 1

ant movie catalog script update movie info?

Posted: 2018-04-10 10:56:00
by otreux
Often, in my Hard Disk, I replace (leaving the same name) movies with bad quality with new ones that have a better quality. Now, with Ant Movie Catalog, I have a lot of movies that have data (resolution and size) that no longer correspond to reality. Is there a script that checks all the movies and updates the wrong data?
Thank you

Spesso, nel mio Hard Disk, sostituisco (lasciando lo stesso nome) film con qualità bassa con nuovi che hanno una qualità migliore. Ora, con Ant Movie Catalog ho tanti film che hanno i dati (risoluzione e dimensione) che non corrispondono più alla realtà. Esiste uno script che controlla tutti i film ed aggiorna i dati sbagliati?
Grazie

Re: ant movie catalog script update movie info?

Posted: 2018-04-10 15:59:11
by antp
I don't think it is possible, sorry
(except if I miss some feature that was previously added by soulsnake)

Re: ant movie catalog script update movie info?

Posted: 2018-04-10 17:31:19
by fulvio53s03
@otreux:
non mi risulta esistere un tale script.
Suggerisco di:
1) creare un nuovo catalogo in cui importare le info dei film attuali
2) esportare il catalogo nuovo in formato .csv (scegliendo i campi interessati (titolo tradotto, file name, tipo audio, risoluzione ecc.)
2) esportare il catalogo preesistente in formato .csv (scegliendo i campi interessati (titolo tradotto, file name, tipo audio, risoluzione ecc.)
3) confrontare i due files, aprendoli con un foglio di calcolo (openoffice, Excel, Libre office ecc.).
con un po' di pazienza ed un po' di pratica di fogli di calcolo.....
Buon lavoro!

I do not believe there is such a script.
I suggest to:
1) create a new catalog in which to import the info of current films
2) export the new catalog in .csv format (choosing the fields concerned (translated title, file name, audio type, resolution etc.)
2) export the pre-existing catalog in .csv format (choosing the fields concerned (translated title, file name, audio type, resolution etc.)
3) compare the two files, opening them with a spreadsheet (openoffice, Excel, Libre office etc.).
with a little patience and a little practice of spreadsheets .....
Good job!
:)

Re: ant movie catalog script update movie info?

Posted: 2018-04-10 17:49:14
by otreux
Thanks for the answer (especially Fulvio for the explanation), I suspected that it was impossiible or almost :(

Grazie della risposta (sopratutto Fulvio per la spiegazione), sospettavo che fosse impossiible o quasi

Re: ant movie catalog script update movie info?

Posted: 2018-04-10 19:49:34
by fulvio53s03
otreux wrote: 2018-04-10 17:49:14 Thanks for the answer (especially Fulvio for the explanation), I suspected that it was impossiible or almost :(
Grazie della risposta (sopratutto Fulvio per la spiegazione), sospettavo che fosse impossiible o quasi
Non è impossibile ma richiede (parecchia) fantasia e pazienza nello scrivere uno script!
Si potrebbe, per esempio,
1)marchiare il campo "checked" (o altro non utilizato) del d.b. vecchio.
2) uniformare il campo "file path" dei due d.b. citati
3) fondere i due d.b. e ordinarli per a) "file path" - b) checked in maniera che il d.b. sia costituito da una serei di coppie checked - unchecked
4) modificare lo script di ricerca doppi cosichhè, a fronte del "record doppio", siano aggiornati i campi risoluzione ecc.
se tutti i film sono doppi (verificare!), alla fine basta cancellare i film "unchecked".

Lo script di ricerca doppioni esiste già, bisogna un po' modificarlo ed adattarlo.
Il procedimento è' più complicato da descrivere che da realizzare ma.... richiede pazienza ed attenzione.
;)
p.s. tempo fa io scrissi uno script di verifica doppi e lo posso fornire di nuovo come base del lavoro.

It is not impossible but requires (a lot of) imagination and patience in writing a script!
One could, for example,
1) mark the field "checked" (or other not used) of the d.b. old.
2) standardize the "file path" field of the two d.b. cited
3) merge the two d.b. and order them for a) field "file path" - b) field "checked" so that the d.b. consists of a pair of checked - unchecked couples
4) modify the double search script so that, compared to the "double record", resolution fields etc. are updated.
if all the films are double (check!), in the end, just delete the "unchecked" movies.

The duplicate search sccript already exists, we need to modify it and adapt it.
The procedure is more complicated to describe than to be done but ... requires patience and attention.
;)

P.S. some time ago I wrote a double verification script and I can provide it again as basis.

Re: ant movie catalog script update movie info?

Posted: 2018-04-10 22:28:27
by otreux
lo script per i doppioni ce l'ho già ma non ho minimamente idea di come modificarlo. Oltretutto il tuo script mi dice che ho tutti i film posizionati e nominati correttamente, il problema sono le informazioni aggiuntive, tutti gli altri campi sotto "ubicazione file", spesso e volentieri, sono sbagliati :(
Se mai un giorno ti verrà voglia di modificare il tuo script per un uso del genere (credo utile non solo a me) te ne sarei molto grato. Intanto, come sempre grazie per la disponibilità :)

I already have the duplicate script but I have no idea how to modify it. Besides your script tells me that I have all the movies positioned and named correctly, the problem is the additional information, all the other fields under "file location", often and willingly, are wrong :(
If ever one day you will want to change your script for such use (I think it is useful not only to me) I would be very grateful. Meanwhile, as always, thanks for the availability :)

Re: ant movie catalog script update movie info?

Posted: 2018-04-11 12:22:02
by fulvio53s03
Ok. con un po' di tempo vedrò di migliorare ulteriormente lo script.
nel frattempo, ti sei ricordato di riordinare il d.b. per "titolo tradotto", "titolo originale" ?
ti allego lo script più aggiornato per la ricerca duplicati.

Code: Select all

(***************************************************

Ant Movie Catalog importation script
www.antp.be/software/moviecatalog/

[Infos]
Authors=Fulvio53s03
Title=Trova film Duplicati ITA
Description=Trova film duplicati e crea link
Site=
Language=IT, EN
Version=1.1
Requires=3.5
Comments=
License=GPL
GetInfo=0
RequiresMovies=1

[Options]
TitleToUse=2|1|1=Use original title|2=Use translated title|3=Check both titles
IgnoreCase=1|1|0=Case sensitive: Keep the uppercase/lowercase characters as different|1=Case insensitive: Consider "TITLE" as identical to "Title" or "title"

[Parameters]

***************************************************)

program FindDup;
uses
  StringUtils1;
var
  MovList: TStringList;
  DupList: TStringList;
  CurTitle: string;
  CurLabel, Curmedia: string;
  Cursize: string;
  OldLabel, OldMedia: string;
  OldSize: string;
  ResultPath: string;
  Titleold, Titlenew: string;
begin
  if StringUtils1_Version < 3 then
  begin
    ShowMessage('File "stringutils1.pas" is too old, please download a new version of it');
    Error;
  end;
  if ResultPath = '' then
  begin
    ResultPath := 'f:\duplicates.csv';
    Input('Find Duplicates', 'Store results to:', ResultPath);
  end;
  if MovList = nil then
    MovList := TStringList.Create;
  if DupList = nil then
    DupList := TStringList.Create;
  case GetOption('TitleToUse') of
    1:  CurTitle := GetField(fieldOriginalTitle);
    2:  CurTitle := GetField(fieldTranslatedTitle);
    3:  CurTitle := GetField(fieldOriginalTitle) + ' | ' + GetField(fieldTranslatedTitle);
  else
    Error; // wrong option
  end;
  if GetOption('IgnoreCase') = 1
     then
       begin
       CurTitle := AnsiLowerCase(CurTitle);
       CurLabel := getField(fieldMedia);
       CurSize := getField(fieldSize);
       CurMedia := getField(fieldMediaType);
       Titleold := 'old;' + Oldlabel + ';' + Oldmedia + ';' + OldSize + ';' + Curlabel + ';' + Curmedia + ';' + CurSize + ';' + CurTitle;
       Titlenew := 'new;' + Curlabel + ';' + Curmedia + ';' + CurSize + ';' + Oldlabel + ';' + Oldmedia + ';' + OldSize + ';' + CurTitle;
//      + ';'  + '=COLLEG.IPERTESTUALE("F:\Ant Movie Catalog\Locandine_numerate\' + getField(FieldNumber) + '.jpg")';
       end
    if FindFullLine(CurTitle, MovList, 0) <> -1
    then  // film uguale
       begin
          DupList.Add(Titleold)
          DupList.Add(Titlenew)
       end
    else
       begin
          MovList.Add(CurTitle);
       end
    OldLabel := CurLabel;
    OldMedia := CurMedia;
    OldSize := CurSize;
    DupList.SaveToFile(ResultPath);   //scrivi
end.

Re: ant movie catalog script update movie info?

Posted: 2018-04-11 22:18:57
by otreux
ok grazie, aspetto tuo nuove...come e quando avrai tempo

ok thanks, I wait your news

Thanks :)

Re: ant movie catalog script update movie info?

Posted: 2018-04-14 04:43:15
by fulvio53s03
@otreux:
l'Update può essere fatto anche in altro modo (non serve uno script):
1) crea copia del D.B. originale (non si sa mai.....)
1) crea un nuovo D.B.con: File - Import - Media Files
2) salva il D.B.

poi apri in D.B- originale e:
1) File - Import - Media Files - Ant Movie File (il D.B. nuovo appena creato)
2) togli la spunta da "Allow to clear fields when new value is empty"
3) click su "Reload file"
4) Click sul campo "Translated Title" e definiscilo "key field" (se hai scelto il titolo tradotto come chiave di confronto, altrimenti definisci altro campo)
5) nella finestra che si apre ("Movies importation method") metti la spunta su "Update only existing movies"
4) click sul tasto "Import..."

verifica gli aggiornamenti effettuati.
Spero essere stato chiaro.
Fammi sapere l'esito delle operazioni.
:D

the Update can also be done in another way (you do not need a script):
1) create a copy of the D.B. original (we never know what can happen.....)
1) create a new D.B. with: File - Import - Media Files
2) save the D.B.

then open original D.B and do:
1) File - Import - Media Files - Ant Movie File (the newly created D.B.)
2) remove the check from "Allow to clear fields when new value is empty"
3) click on "Reload file"
4) Click on the "Translated Title" field and define it as "key field" (if you have chosen the title translated as a comparison key, otherwise define another field)
5) in the window that will open ("Movies importation method") put the tick on "Update only existing movies"
4) click on the "Import ..." button

check for updates made.
I hope I was clear.
Let me know the outcome of the operations.
:ha:

Re: ant movie catalog script update movie info?

Posted: 2018-04-24 11:46:40
by otreux
Grazie ma

1) crea un nuovo D.B.con: File - Import - Media Files

che impostazioni devo mettere nella finestra che mi si apre? Ho importato i film ma sono tutti senza Etichetta, Origine e tutte le altre informazioni tranne quelle sotto Ubicazione file


what settings should I put in the window that opens me? I imported the movies but they are all without Label, Origin and all other information except those under File location

Re: ant movie catalog script update movie info?

Posted: 2018-04-24 14:08:59
by fulvio53s03
otreux wrote: 2018-04-24 11:46:40 ...che impostazioni devo mettere nella finestra che mi si apre? Ho importato i film ma sono tutti senza Etichetta, Origine e tutte le altre informazioni tranne quelle sotto Ubicazione file....
Metti la spunta a:
- consenti numeri duplicati
- cerca di assegnare automaticamente i campi alle colonne
togli la spunta a:
- consenti di pulire i campi quando il nuovo valore è vuoto
:)

Re: ant movie catalog script update movie info?

Posted: 2018-04-24 19:53:19
by otreux
Grazie, poi lo provo.
Ora ho una priorità, ho fatto casino tremendo con qualche script (credo RenameFiles) , ho aperto un thread

http://forum.antp.be/phpbb3/viewtopic.php?f=5&t=6880

puoi dare un'occhiata per favore? :wow: :wow: :wow: