Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 07-10-2019, 06:07 AM   #1
FlyGoneCrazy
Member
FlyGoneCrazy began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Apr 2008
Device: Kindle Oasis
Downloaded metadata merging

Hey there!

I'm looking for ideas how to avoid downloaded metadata merging. The case is that in my country there are a lot of books without ISBN, because of historic reasons (Soviet union did not used ISBN).

So my problem is that a lot of books do not crawl ISBN and it seems no ISBN is treated as the same ISBN. So they are merged. Or as I see, they are get rid of at all.

Do you know a method how to avoid merging? I've tried to modify plugin and use unique title and unique author, by adding random string. Unfortunately it doesn't work... Those records that are without ISBN are removed.

Thanks for ideas in advance!


Fly
FlyGoneCrazy is offline   Reply With Quote
Old 07-10-2019, 08:05 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you enable only a single metadata download plugin, that should take care fo it. Preferences->Metadata download
kovidgoyal is offline   Reply With Quote
Advert
Old 07-10-2019, 10:13 AM   #3
FlyGoneCrazy
Member
FlyGoneCrazy began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Apr 2008
Device: Kindle Oasis
It doesn't matter if there's only one source selected. Result is following:

Code:
Running identify query with parameters: 
{u'title': u'Balta drobul\u0117', u'authors': [u'Antanas \u0160k\u0117ma'], u'identifiers': {u'filename': u'Antanas.Skema.-.Balta.drobule.2005.LT.pdf', u'goodreads': u'22588213'}, u'timeout': 30} 
Using plugins: knygos (1, 0, 0) 
The log from individual plugins is below 

****************************** knygos (1, 0, 0) ****************************** 
Found 4 results 
Downloading from knygos took 5.59059000015 


--- 
Title               : Balta drobulė (Baltos lankos)
Author(s)           : Antanas Škėma (357452875)
Publisher           : Baltos lankos
Languages           : lt
Published           : 2013-07-10T00:00:00+00:00
Identifiers         : knygos:knygos/balta-drobule-mazos-dideles-knygos, isbn:9789955236627

--- 
Title               : Balta drobulė
Author(s)           : Antanas Škėma (865272187)
Publisher           : Žaltvykslė
Languages           : lt
Published           : 2009-07-10T00:00:00+00:00
Identifiers         : knygos:knygos/balta-drobule-9ij, isbn:9799986060825

--- 
Title               : Balta drobulė (Skaitinių serija 28)
Author(s)           : Antanas Škėma (575603359)
Publisher           : Baltos lankos
Languages           : lt
Published           : 1999-07-10T00:00:00+00:00
Identifiers         : knygos:knygos/balta-drobule--skaitiniu-serija-28-, isbn:9789986861980

--- 
Title               : Balta drobulė (1990)
Author(s)           : Antanas Škėma (210775480)
Publisher           : Lietuvos rašytojų sąjungos leidykla
Languages           : lt
Published           : 1990-07-10T00:00:00+00:00
Identifiers         : knygos:knygos/balta-drobule-syhushje
    
Title:Balta drobulė
Authors:[u'Antanas \u0160k\u0117ma']

SEARCH BASED ON TITLE AND AUTHOR:
	Querying: https://www.knygos.lt/lt/paieska?q=Balta%20drobul%C4%97 Antanas%20%C5%A0k%C4%97ma&psl=1
	4 results in 1 pages found
		Unique book #1 URL: 'https://www.knygos.lt/lt/knygos/balta-drobule-mazos-dideles-knygos/'
		Unique book #2 URL: 'https://www.knygos.lt/lt/knygos/balta-drobule--skaitiniu-serija-28-/'
		Unique book #3 URL: 'https://www.knygos.lt/lt/knygos/balta-drobule-syhushje/'
		Unique book #4 URL: 'https://www.knygos.lt/lt/knygos/balta-drobule-9ij/'
SEARCH BASED ON TITLE:
	Querying: https://www.knygos.lt/lt/paieska?q=Balta%20drobul%C4%97&psl=1
	4 results in 1 pages found
SEARCH BASED ON ISBN:
	Querying: https://www.knygos.lt/lt/paieska?q=Balta%20drobul%C4%97&psl=1
	4 results in 1 pages found 

******************************************************************************** 
The identify phase took 5.67 seconds 
The longest time (5.590590) was taken by: knygos 
Merging results from different sources 
We have 3 merged results, merging took: 0.00 seconds
After merging I have see attachment. A book release in 1990 is missing as it doesn't have ISBN (according to the log provided above).
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2019-07-10 at 17.09.38.png
Views:	110
Size:	97.2 KB
ID:	172331  
FlyGoneCrazy is offline   Reply With Quote
Old 07-10-2019, 10:33 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes if you have results from the same source some of which have isbns and some do not, then the metadata system will keep the isbn based results and discard the rest. This is not something that can be controlled, short of editing calibre source code.
kovidgoyal is offline   Reply With Quote
Old 07-10-2019, 10:41 AM   #5
FlyGoneCrazy
Member
FlyGoneCrazy began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Apr 2008
Device: Kindle Oasis
Well, my first thought was to generate fake random ISBN to avoid merging. Even though it have several disadvantage - can't merge results from different sources, even though they are the same. But it doesn't work. As I guess ISBN structure is checked...

That's why I've started this thread - maybe someone has some brilliant idea. As I've mentioned previously by adding random string to author (BTW before write they are get rid of by Calibre feature - create rules for author records) helped me to overcome this issue partly, when results with ISBN records were merged due to similarity in authors and titles.

Now I'm a bit stuck...
FlyGoneCrazy is offline   Reply With Quote
Advert
Old 07-10-2019, 10:50 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
well the best solution to prevent merging is to modify the calibre metadata download system. If the identifiers dictionary has a key named 'calibre-no-merge' then the result should not be merged and the key should be discarded.

However, this is not really of interest to me, so patches are welcome.
kovidgoyal is offline   Reply With Quote
Old 07-12-2019, 06:50 AM   #7
FlyGoneCrazy
Member
FlyGoneCrazy began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Apr 2008
Device: Kindle Oasis
I do not want to turn off merging, as it's useful in case ISBN exist. My problem is only merging records without ISBN, or merging records from the same provider.

I'll think about patching calibre, however I'm not so good in this.

Talking about my problem, I've solved it by adding a list of 1000 random ISBNs. In case parsing ends up without ISBN, my plug-in picks one from the list. To be able to identify books with fake ISBN, I'm adding a tag !fake_isbn.

It's not the most elegant solution, but it works just fine for me.

The next thing to do - add option to configuration for turning this function on/off.

Case closed.
FlyGoneCrazy is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible Tweak to Edit Metadata Screen for Downloaded Metadata Philosopher Library Management 3 04-01-2015 05:46 PM
Problem merging metadata Terisa de morgan Library Management 11 09-01-2014 06:18 AM
Wrong metadata after merging dancal Library Management 14 12-16-2012 12:36 PM
Merging metadata when adding duplicate magphil Calibre 2 01-14-2012 04:23 AM
Jobs Queue, Merging, Metadata, I think that's it.... rabidrobot Calibre 2 08-17-2010 07:31 PM


All times are GMT -4. The time now is 07:25 PM.


MobileRead.com is a privately owned, operated and funded community.