astro icon indicating copy to clipboard operation
astro copied to clipboard

Funky categories

Open duramato opened this issue 8 years ago • 7 comments

screencapture-supergonkas-info-1337-1454605540775

duramato avatar Feb 04 '16 17:02 duramato

Guessing that's the old version or you imported a db from the old one?

OmgImAlexis avatar Feb 04 '16 17:02 OmgImAlexis

No fresh db on this one started happen after updating to the latest version with the daily imports

duramato avatar Feb 04 '16 20:02 duramato

Any chance you could run mongo the once you're in the mongo shell do this and comment the results.

use bitcannon
db.categories.find()

You should get something like this.

{ "_id" : ObjectId("56455fc2036463f20aa07543"), "title" : "Music", "slug" : "music", "aliases" : [ "audio" ], "torrentCount" : 1101657 }
{ "_id" : ObjectId("5645602e036463f20aa07545"), "title" : "Miscellaneous", "slug" : "misc", "aliases" : [ "other" ], "torrentCount" : 334538 }
{ "_id" : ObjectId("564560c3036463f20aa07549"), "title" : "Books", "slug" : "books", "aliases" : [ "ebooks" ], "torrentCount" : 487766 }
{ "_id" : ObjectId("564563ae036463f20aa0754b"), "title" : "Movies", "slug" : "movies", "aliases" : [ ], "torrentCount" : 1345276 }
{ "_id" : ObjectId("56456516036463f20aa07551"), "title" : "Anime", "slug" : "anime", "aliases" : [ "japanese anime" ], "torrentCount" : 286738 }
{ "_id" : ObjectId("564565c2036463f20aa07553"), "title" : "Audio Books", "slug" : "audio-books", "aliases" : [ ], "torrentCount" : 0 }
{ "_id" : ObjectId("5645662c036463f20aa07555"), "title" : "Games", "slug" : "games", "aliases" : [ ], "torrentCount" : 217222 }
{ "_id" : ObjectId("56513de903645f141c820009"), "title" : "Comics", "slug" : "comics", "aliases" : [ ], "torrentCount" : 0 }
{ "_id" : ObjectId("56513e3e03645f141c82000b"), "title" : "Music Videos", "slug" : "music-videos", "aliases" : [ ], "torrentCount" : 974 }
{ "_id" : ObjectId("56455aff036463f20aa07541"), "title" : "TV", "slug" : "tv", "aliases" : [ "tv show", "show", "episode" ], "torrentCount" : 1194116 }
{ "_id" : ObjectId("5645643a036463f20aa0754d"), "title" : "Pictures", "slug" : "pictures", "aliases" : [ "photos", "images" ], "torrentCount" : 102 }
{ "_id" : ObjectId("56456474036463f20aa0754f"), "title" : "Applications", "slug" : "applications", "aliases" : [ "apps", "programs" ], "torrentCount" : 484768 }
{ "_id" : ObjectId("56519f9003645f141c82000d"), "title" : "XXX", "slug" : "xxx", "aliases" : [ "adult", "porn", "sex" ], "torrentCount" : 1590179 }

OmgImAlexis avatar Feb 05 '16 01:02 OmgImAlexis

I think this is either a problem with the archives or with the parsing of the archives. As an example I'm parsing the torrentproject archives and this is one line of the archive versus what nodejs sees:

Archive
INFO_HASH_REMOVED|Teenage Mutant Ninja Turtles (2012) S04E07 The Arena of Carnage 720p WEB DL AAC2 0 H264 iT00NZ rarbg|Video Tv|https://torrentproject.se/INFO_HASH_REMOVED/|http://torrentproject.se/torrent/INFO_HASH_REMOVED.torrent
What Node.js see's (outputting data from gunzip.on('data'))
L AAC2 0 H264 iT00NZ rarbg|Video Tv|https://torrentproject.se/INFO_HASH_REMOVED/|http://torrentproject.se/torrent/INFO_HASH_REMOVED.torrent

As a result the torrent is saved with completely the wrong data. I can't seem to figure out why though.

EDIT: Having logged all of data to a file I can see that the torrent is spread over two lines as follows:

INFO_HASH_REMOVED|Teenage Mutant Ninja Turtles (2012) S04E07 The Arena of Carnage 720p WEB D
L AAC2 0 H264 iT00NZ rarbg|Video Tv|https://torrentproject.se/INFO_HASH_REMOVED/|http://torrentproject.se/torrent/INFO_HASH_REMOVED.torrent

I'm not quite sure what this means? It could mean the buffer is full?

Any ideas how to fix this?

aidanharris avatar Feb 05 '16 20:02 aidanharris

@aidanharris that's probably because only KAT is supported at the moment.

OmgImAlexis avatar Feb 06 '16 02:02 OmgImAlexis

@OmgImAlexis sorry can`t do that since ive deleted the db But another issue happened , i have double categories image

duramato avatar Feb 07 '16 18:02 duramato

Can you run that command now with the doubles?

OmgImAlexis avatar Feb 08 '16 02:02 OmgImAlexis