astro
astro copied to clipboard
Funky categories
Guessing that's the old version or you imported a db from the old one?
No fresh db on this one started happen after updating to the latest version with the daily imports
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 }
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 that's probably because only KAT is supported at the moment.
@OmgImAlexis sorry can`t do that since ive deleted the db
But another issue happened , i have double categories
Can you run that command now with the doubles?