Comments (8)
Thanks, let me look into this and get back to you. I haven't tried the importer in a little while and it definitely needs more work anyway....
from bitmagnet.
This should be fixed in the latest release, could you give it another try?
from bitmagnet.
Perfect, thanks for the quick fix. I had the same issue and works with the latest update.
❯ sqlite3 -json -batch rarbg_db.sqlite "$(cat rarbg-import.sql)" \
| jq -r --indent 0 '.[] | . * { source: "rarbg" } | . + if .imdb != null then { externalIds: { imdb: .imdb } } else {} end | del(.imdb) | del(..|nulls)' \
| curl --verbose -H "Content-Type: application/json" --data-binary @- http://localhost:3333/import
* Trying 127.0.0.1:3333...
* Connected to localhost (127.0.0.1) port 3333 (#0)
> POST /import HTTP/1.1
> Host: localhost:3333
> User-Agent: curl/7.88.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 269567440
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Vary: Origin
< Date: Thu, 05 Oct 2023 16:46:48 GMT
< Content-Type: text/plain; charset=utf-8
< Connection: close
< Transfer-Encoding: chunked
<
1000 items imported
2000 items imported
3000 items imported
4000 items imported
5000 items imported
6000 items imported
7000 items imported
8000 items imported
....
497000 items imported
498000 items imported
499000 items imported
500000 items imported
....
from bitmagnet.
Good to hear, thanks! Closing this now....
from bitmagnet.
Hey, sorry to resurrect this issue but I have a similar problem.
I followed the example as well but I get this:
ERROR httpserver/httpserver.go:52 error adding item {"err": "encoding/hex: invalid byte: U+006D 'm'"}
I tried with multiple lines and with a single one.
Am I doing something wrong?
I am stupid, sorry.
I edited the sqlite when I got it as I added the "magnet" part of the infohashes, not remembering until I tried doing a single one without it.
from bitmagnet.
Hi @bonny1992 this is working for me using 0.1.0. If you could redact any copyrighted material and post a line of JSON here I'll see if anything looks obviously wrong - please do not post any complete info hashes, just remove 1 character is fine.
from bitmagnet.
Hi @bonny1992 this is working for me using 0.1.0. If you could redact any copyrighted material and post a line of JSON here I'll see if anything looks obviously wrong - please do not post any complete info hashes, just remove 1 character is fine.
No, I'm sorry, you're right. It's working fine.
I've edited my message (didn't expect you to reply this fast!), but I had the magnet:...
part inside the infohash column, so it was failing because bitmagnet wasn't expecting a string that long (and not hexadecimal).
BTW, sorry to derail this issue, but is there any place where I can find what are the expected fields for an import? There's a very old csv I'd like to import (from an Italian tracker that closed some years ago) and for sure that doesn't have any imdb id :)
from bitmagnet.
is there any place where I can find what are the expected fields for an import?
@bonny1992 I still need to add a proper schema for the import. You can see the data structure here: https://github.com/bitmagnet-io/bitmagnet/blob/main/internal/importer/importer.go#L44 - at a minimum you'll need source
, infoHash
, name
, size
, publishedAt
- the rest are optional.
from bitmagnet.
Related Issues (20)
- Document disk space requirements HOT 11
- Allow setting a database size limit, suspend DHT crawler if exceeded HOT 11
- Don't use DB when `--help` specified HOT 1
- Database size optimizations HOT 3
- [WebUI] Direct link to a torrent HOT 1
- Missing container OS/Arch for version 0.7.8 HOT 1
- How to install bitmagnet with docker? HOT 7
- metrics endpoint gives 404
- tmdb_client context deadline exceeded | Infinite loop, doesn't work. Version 0.7.10-12 HOT 4
- Torznab search by id is broken
- Scope Search to Title, Content or Both HOT 1
- Field-Specific Search HOT 1
- Exact Phrase Search HOT 1
- Boolean Operators HOT 1
- Wildcard Matching HOT 1
- Regular Expression Search HOT 1
- Saved Searches
- Numeric Range Filters
- Hash Search HOT 3
- To be able to sort the torrent per size and seeders/leechers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitmagnet.