#1 2018-02-03 12:48:56

GUser
New member
Registered: 2018-02-03
Posts: 1

XML Export produce empty file

I use GCstart version 1.6.1 on Windows, when I export my collection to XML, output is empty file (with some blank lines).
I have set custom template with all sections (HEADER, ITEM, etc.).

Offline

 

#2 2018-02-03 21:46:06

van der Decken
Member
Registered: 2018-01-30
Posts: 27

Re: XML Export produce empty file

I just tried an XML export using 1.7.1 (with the Gitlab updates) on Linux and saw the same thing. The right number of lines, but nothing on them. I also saw an essentially empty CSV export earlier (right number of lines, but field separators only, no data) but I haven't yet been able to reproduce that yet.

And I'm noticing that the output file initially defaults to the collection file's name when I click on the "Select File" button. I'm not sure if I just didn't notice that before or if it's just started doing that since I updated. I'm definitely going to dig into the code to see what's happening there. I don't want to overwrite my collection file by accident!

Last edited by van der Decken (2018-02-03 21:49:33)

Offline

 

#3 2018-02-07 12:38:44

kerenoc
Member
Registered: 2016-03-19
Posts: 226
Website

Re: XML Export produce empty file

@GUser

From the source code, it appears that GCstar only has 2 predefined XML templates for films. However the native format for collections is  a pseudo XML file with a flat structure: can't you start from that?

@van der Decker

The file chooser dialog seems to be launched with a filter on extension only for imports (GCExportImport.pm lines 221 and 505). Keep us informed if you dig into this, otherwise I'll put that into the Todo list (issue tracker in Gitlab)

Offline

 

#4 2018-02-07 20:26:40

kerenoc
Member
Registered: 2016-03-19
Posts: 226
Website

Re: XML Export produce empty file

I checked and modified the file filters on extension for import and export (committed on GitLab)

Offline

 

#5 2018-02-07 21:12:30

van der Decken
Member
Registered: 2018-01-30
Posts: 27

Re: XML Export produce empty file

Thanks, kerenoc. I'd been tinkering with getting the extension right for exports but hadn't gotten it to work properly yet (that whole 'new at Perl' thing!).

Offline

 

#6 2018-02-07 22:45:52

kerenoc
Member
Registered: 2016-03-19
Posts: 226
Website

Re: XML Export produce empty file

Starting with Perl by modifiying the plugins is easier than modifying the app itself.  Its model based architecture allowing lots of customisation is not straightforward and we lack design documents!

Keep us informed if you do further tests.

Offline

 



Should you have a problem using GCstar, you can open a bug report or request some support on GCstar forums.