But for the moment I am busy

I think I will have a test version for next week , maybe before...

Soulsnake
Yep, fully clear. That would solve all problems with "external extensions", as we would not loose them anymore, once we opened and saved the XML file in AMC.antp wrote:Sorry I forgot to check new comments on the forum
Currently AMC uses the ".amc" as main format, putting all in memory in its own objects. The XML format was added later, and is just a kind of automatic import/export: it reads the XML to populate its own objects, and recreates a XML file from scratch while saving.
If we change the forum, maybe the best would be to use XML as primary format, and make a kind of "mapping" between the program and the XML file: instead of having the "movie" class reading all from the XML at load time, it should go pick in it the needed info when requested. That way, when saving we just save the XML that we have read, with possibly some things added/deleted/modified, but leaving untouched all what was not accessed.
(is it still clear?)
Indeed I would assume, adding artwork to XML files is not a good idea - as it would finally result in both too big files and probably slow down the handling. Even if it's possible with e.g. base64 encoding, it would make the XML file quite "unreadable", as most of it would be populated with encoded images ;-)The problem with using a XML file by default is for people who want to store picture inside the catalog and not as external files.
Main possibilities:
- having a .amc file along the .xml file, containing just pictures
- store pictures encoded in the .xml file, as Base64 or other similar encoding, but this takes more space than in a binary file, I am not sure it is a good idea to risk having very big xml files (it could be ok for small pictures though)
So maybe both solutions could be offered?
Yeah - current approach uses up quite some memory with big databases ;-) - but wasn't ever a limitation on todays PCs (with gigabytes of RAM).For the binary file, it may be easier to use a basic database system (access file? or something better that would not rely on external engine) instead of manually handling that? As loading/saving that file is not easy (current system is bad: it loads all in memory and rewrites the whole file to disk when saving)
I think it is a good solution.Otherwise I think I'd vote for your first option, keeping an .amc file along primary XML file to store images.
For me that would be perfectly fine :-) - but as I said, I am an "XML-user" since ages anyway...soulsnake wrote:I think it is a good solution.Otherwise I think I'd vote for your first option, keeping an .amc file along primary XML file to store images.
So the new standard format could be .xml with 2 options :
- like it was before (stored pictures are copied with XML catalog during save if wanted).
- with an associated binary file (.amp : Ant Movie Pictures) that contains stored pictures. (by default)
What do you think ?
Hi ron_dolph,I'd like to see the ability to insert additional pictures into the one title smile. Is it possible? I mean pictures such as dvd cover original, dvd cover translated etc.
Code: Select all
<?xml version="1.0" encoding="iso-8859-1"?>
<AntMovieCatalog Format="40" Version="4.0.0" Date="16/10/2011 10:16:43">
<Catalog>
<Properties Owner="Sample" Mail="m.v@gmail.com" Site="mv.online.fr" Description="Sample description" />
<CustomFieldsProperties ColumnSettings="Column settings in grid mode">
<!-- MultiValues="True": multiple values separed by a separator here ',' used to make multiple groups during grouping on this field -->
<CustomField Tag="Test1" Type="ftString" Name="Test N°1" DefaultValue="My Default Value" MultiValues="True" ExcludedInScripts="True" GUIProperties="GUI Properties" CustomProperties="Other program properties saved by AMC" />
<CustomField Tag="Test2" Type="ftDate" Name="Test N°2"/>
<CustomField Tag="Test3" Type="ftInteger" Name="Test N°3"/>
<CustomField Tag="Test4" Type="ftReal" Name="Test N°4"/>
<CustomField Tag="Test5" Type="ftList" Name="Test N°5">
<ListItem Text="Text 1" />
<ListItem Text="Text 2" />
<ListItem Text="Text 3" />
</CustomField>
<CustomField Tag="Test6" Type="ftBoolean" Name="Test N°6">
</CustomFieldsProperties>
<Contents>
<Movie Number="1" Checked="True" Date="25/05/2002" Rating="8.0" OriginalTitle="Matrix, The" FormattedTitle="Matrix, The" Director="Andy Wachowski, Larry Wachowski" Country="United States" Category="Action" Year="1999" Length="136" Actors="Keanu Reeves, Laurence Fishburne, Carrie-Anne Moss..." URL="http://us.imdb.com/Title?0133093" Description="In the near future, a computer hacker named Neo (Keanu Reeves) discovers that all life on Earth may be nothing... " Languages="English" Picture="Sample_1.jpg">
<CustomFields Test1="Test value 1, Test value 2, Test value 3" Test2="25/09/2011" Test3="2004" Test4="9.1" Test5="Text 3" Test6="True" />
</Movie>
<Movie Number="2" Checked="True" Date="25/05/2002" Rating="6.0" OriginalTitle="Lethal Weapon 4" FormattedTitle="Lethal Weapon 4" Director="Richard Donner" Country="United States" Category="Crime" Year="1998" Length="127" Actors="Mel Gibson, Danny Glover, ..." URL="http://us.imdb.com/Title?0122151" Description="Martin Riggs and Roger Murtaugh, after escaping death..." Languages="English" Picture="Sample_2.jpg">
<CustomFields Test1="Test Value 3, Test value 4" Test2="22/09/2011" Test3="2007" Test4="7.2" Test5="Text 1" />
</Movie>
<Movie Number="3" Checked="True" Date="25/05/2002" Rating="8.0" OriginalTitle="Indiana Jones and the Last Crusade" FormattedTitle="Indiana Jones and the Last Crusade" Director="Steven Spielberg" Country="United States" Category="Fantasy" Year="1989" Length="127" Actors="Harrison Ford, Sean Connery..." URL="http://us.imdb.com/Title?0097576" Description="Renowned archeologist and expert in the occult..." Languages="English" Picture="Sample_3.jpg">
<CustomFields Test1="Test value 1, Test value 5" Test2="18/09/2011" Test3="2006" Test4="8.8" Test5="Text 2" Test6="True" />
</Movie>
</Contents>
</Catalog>
</AntMovieCatalog>
Merci d'avoir signalé ce bug ! C'est corrigé dans la prochaine versionSalut à tous
Serait il possible dans une future mise à jour de faire en sorte que la fenêtre de sélection d'un film qui apparait après une recherche par script garde la taille qu'on lui a attribué. Pour le moment à chaque fois que l'on ferme le programme, elle reprend sa valeur de base.
Cette requête s'adresse aussi bien à soulsnake qu'a antp qui doit déjà l'avoir dans sa "to do list"![]()
Hi all
Is it possible in a future update that the window for selecting a movie who appears after a search by script keeps the size we have assigned. For now each time we close the program, it returns to its base value.
This request is for soulsnake or antp which should already have it in his "to do list"![]()
C'est tout simplement parfait!soulsnake wrote: Concernant les champs personnalisés qui vont arriver avec la version 4.0, pour spécifier la date d'aujourd'hui sur les champs de type Date, il suffira de mettre la valeur TODAY comme valeur par défaut.