kilman / t411-torznab Goto Github PK
View Code? Open in Web Editor NEWA NodeJs proxy to download from T411 in Sonarr
A NodeJs proxy to download from T411 in Sonarr
Hello,
Is it possible to make this thing work with CP ?
It would be so useful !
Thanks by advance,
The torznab api impelmented for T411 doesn't support movie search.
can you please add support for t=movie ?
Thank you !
Hi,
Here is something I found for the Categories if you want to add them somehow:
https://github.com/raspdealer/Jackett/commit/74b8eec9d7942a06090ee4b6b3be5a197494a018
Old and new Categories mapping.
Hello,
I would like to know if it's possible to add a new T411Categories : "Animation Série" ?
Your indexer help me so much but just missing for use it with animation.
Thanks again for your job.
Hello,
I can't login t411 with your docker.
Here the error message
info: Trying to log into T411 with user : 'XXXXX'
/usr/src/app/server.js:598
_logger.err("Failed to login to T411 : Please verify your credentials in 'config.json'");
^
TypeError: _logger.err is not a function
at Request.callbackLoginT411 [as _callback] (/usr/src/app/server.js:598:13)
at Request.self.callback (/usr/src/app/node_modules/request/request.js:186:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (/usr/src/app/node_modules/request/request.js:1081:10)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at IncomingMessage.<anonymous> (/usr/src/app/node_modules/request/request.js:1001:12)
at IncomingMessage.g (events.js:260:16)
at emitNone (events.js:72:20)
Hello,
I have just installed your code on Docker (syno DS415+) and I have the following error in the log :
Response from T411 invalid. Error : 301
Do you know what it mean ?
I already chech the password and login many time and the T411 website adress is correct in ''server'' file.
Bonjour,
Depuis quelques temps j'ai un crash systématique sur les recherches :
debug: Query : New Girl
debug: t=tvsearch, cat=5030,5040, extended=1, apikey=12345, offset=0, limit=50, q=New Girl, season=5, ep=10
debug: url=http://api.t411.ch/torrents/search/New Girl?term[45][]=972&term[46][]=947&offset=0&limit=50, Authorization=99664297:68:dc804c99477921042a9e100894653540
debug: Got 0 torrents
debug: t=tvsearch, cat=5030,5040, extended=1, apikey=12345, offset=0, limit=50, tvdbid=279536, tvmazeid=3606, season=1, ep=7
debug: Requested TvMaez Id : 3606
debug: TvMaze Cache for 3606 empty, querying tvMaze
debug: Got informations from TvRage
/opt/t411-torznav/node_modules/node-cache/lib/node_cache.js:297
return key.length;
^
TypeError: Cannot read property 'length' of undefined
at NodeCache.module.exports.NodeCache._getKeyLength (/opt/t411-torznav/node_modules/node-cache/lib/node_cache.js:297:17)
at NodeCache.module.exports.NodeCache.set (/opt/t411-torznav/node_modules/node-cache/lib/node_cache.js:112:34)
at NodeCache.set (/opt/t411-torznav/node_modules/node-cache/lib/node_cache.js:3:59)
at Object.tvRageResult (/opt/t411-torznav/server.js:244:15)
at Request._callback (/opt/t411-torznav/tvmaze.js:22:3)
at Request.self.callback (/opt/t411-torznav/node_modules/request/request.js:198:22)
at Request.emit (events.js:110:17)
at Request.<anonymous> (/opt/t411-torznav/node_modules/request/request.js:1082:10)
at Request.emit (events.js:129:20)
at IncomingMessage.<anonymous> (/opt/t411-torznav/node_modules/request/request.js:1009:12)
Une idée d'ou ça peut venir?
Merci
npm WARN deprecated [email protected]: use uuid module instead
node server.js
module.js:428
throw err;
^
SyntaxError: /try/T411-Torznab-master/config.json: Unexpected token g
at Object.parse (native)
at Object.Module._extensions..json (module.js:425:27)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/try/T411-Torznab-master/server.js:5:14)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
Hello,
I would like to know if you have information about how install your indexer on a qnap nas?
I try to make the manipulation you make but it's not working.
I'm not familiar about coding, i'm a new beginner in nas.
Thanks a lot for your help.
Regards,
I got this error when I try to launch the script. What can I do?
Thanks!
Hi,
The sed
command you use in the startup script would fail if the username or password contains a &
character. You probably need something more robust, like using process.env inside the javascript file or something.
It's possible that it also fails if username or password contain other special characters.
Thanks for your project, it helps me greatly.
Hi,
Not sure what changed, but search no longer return any restult.
Extract from logs:
2017-01-08T18:44:35.329Z - debug: Query : American Crime Story
2017-01-08T18:44:35.330Z - debug: t=tvsearch, cat=433, extended=1, apikey=test, offset=0, limit=50, q=American Crime Story, season=1, ep=1
2017-01-08T18:44:35.331Z - debug: url=http://api.t411.li/torrents/search/American Crime Story?term[0][]=undefined&term[0][]=undefined&offset=0&limit=50, Authorization=...
2017-01-08T18:44:35.631Z - debug: Got 0 torrents
It seems to come form the space and cid combination. I tried directly on the t411 api replacing with dots and seems ok: /torrents/search/american.crime.story&cid=433. Although /torrents/search/american+crime+story&cid=433 won't return anything...
Hello,
First, thank you for your great script.
It works pretty well, but I'm experiencing an issue: it seems that it's dropping some results when querying some releases on Sonaar.
For example, I'm trying to searching one specific release of "Gintama 291", so I've manually entered the following url: "http://<"HOST-HERE">:9876/api?t=search&extended=0&apikey=<"APIKEYHERE">&offset=0&limit=100&q=gintama+291".
But one release is missing.
I've manually tried with another torznab script (Jackett-public - not working on Sonaar) and here are the url + results:
"http://<"HOSTHERE">:9117/torznab/t411/api?t=tvsearch&extended=1&apikey=<"APIKEYHERE">&offset=0&limit=100&q=gintama+291"
As you can see, another result is returned (which is the one I always wanted for the beginning).
Could you help me about it?
Thank you.
Hi there,
Thanks a lot for this project I'm using daily through Docker.
Regarding frequent T411 URL changes, would it be possible to allow baseT411 and baseAPI properties to be set through Docker parameters exactly like USERNAME and PASSWORD. Source code will then be totally independent from this configuration and no push will be need on new URL change.
Best regards,
Michaël
Hi,
Thanks for adding Radarr support! Unfortunately I've got a bug on every IMDB search :
debug: t=movie, cat=2000,2010,2020,2030,2035,2040,2045,2050,2060, extended=1, apikey=12345, offset=0, limit=50, imdbid=0445760
debug: Requested IMDB Id : 0445760
debug: Movie Cache for 0445760 empty, querying IMDB
debug: undefined
Unhandled rejection TypeError: Cannot read property 'title' of undefined
at researchMovie (/opt/t411-torznav/server.js:213:21)
at /opt/t411-torznav/server.js:387:8
at /opt/t411-torznav/node_modules/imdb-api/lib/imdb.js:188:13
at tryCatcher (/opt/t411-torznav/node_modules/request-promise/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/opt/t411-torznav/node_modules/request-promise/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/opt/t411-torznav/node_modules/request-promise/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/opt/t411-torznav/node_modules/request-promise/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/opt/t411-torznav/node_modules/request-promise/node_modules/bluebird/js/release/promise.js:687:18)
at Async._drainQueue (/opt/t411-torznav/node_modules/request-promise/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/opt/t411-torznav/node_modules/request-promise/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/opt/t411-torznav/node_modules/request-promise/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:649:20)
at tryOnImmediate (timers.js:622:5)
at processImmediate [as _immediateCallback] (timers.js:594:5)
The debug: undefined
comes from the lines 212 I've uncommented.
Thanks!
Trace log is here: https://pastebin.com/eSPwEikN
I imagine the issue is simply that torznab doesn't currently support categories (2000,2010,2020,2030,2035,2040,2045,2050,2060) for The Pirate Bay. In all fairness, I don't even know how I got TPB into Torznab. But I believe it works for Sonarr!
Bonjour,
Quand sonarr chercher des episodes , il ne prend pas ceux qui sont marquer "Multi (Francais inclu)", est ce que cela peut être contourné par le script de T411-Torznab ou il faut jouer avec sonarr ?
si quelqu'un a une solution
Merci d'avance
Hello,
When sonarr seek episodes, it does not take those marked "Multi (French included)," is that it can be bypassed by the T411-Torznab script or you have to play with sonarr?
if anyone has a solution
thank
Kayl
Bonjour,
Depuis ce matin j'ai l'erreur suivante :
█▓▒░foux@genplex░▒▓██▓▒░ jeu. mars 24 10:18:19
/opt/t411-torznav> node server.js
info: Starting T411 proxy
info: Running in : /opt/t411-torznav
info: Trying to log into T411 with user : 'xxxxx'
/opt/t411-torznav/server.js:584
_logger.err("Failed to login to T411 : Please verify your credentials in 'c
^
TypeError: undefined is not a function
at Request.callbackLoginT411 [as _callback] (/opt/t411-torznav/server.js:584:12)
at Request.self.callback (/opt/t411-torznav/node_modules/request/request.js:198:22)
at Request.emit (events.js:110:17)
at Request.<anonymous> (/opt/t411-torznav/node_modules/request/request.js:1082:10)
at Request.emit (events.js:129:20)
at IncomingMessage.<anonymous> (/opt/t411-torznav/node_modules/request/request.js:1009:12)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)
J'ai vérifié mes identifiants qui sont bons. Y'a t'il un problème sur l'API?
Dear Team,
I update the server.js
and I got this error:
Error: Cannot find module 'underscore'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/sonar/T411/server.js:12:9)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
any idea ?
Best regards
Hi !
It's not my first install but this time, after the last update of python :
ash-4.3# node server.js
module.js:427
throw err;
^
SyntaxError: /volume1/homes/admin/config.json: Unexpected token <
at Object.parse (native)
at Object.Module._extensions..json (module.js:424:27)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/volume1/homes/admin/server.js:5:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
Hello everybody,
I have an issue when I try to run the server.js node
vps:~/T411-Torznab# node server.js
module.js:591
throw err;
^
SyntaxError: /root/T411-Torznab/config.json: Unexpected token < in JSON at position 87
at JSON.parse (<anonymous>)
at Object.Module._extensions..json (module.js:588:27)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/root/T411-Torznab/server.js:5:14)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
I'm on Ubuntu 16.04, and I also looked at #9 (comment) as it looked similar but I found nothing that could help
If someone has any idea on how to solve that, he would be my savior ;)
Hi there,
IMDB as been added to movies search, that's great, but I wonder if it's the best idea. When searching with IMDB, Radarr sends only the IMDBID, and T411-Torznab will do an IMDB research to fetch the title name.
This would be great if T411 dealt with IMDBID, so we would just have to send the ID, but the problem is that... it doesn't. So we just send the french movie name to IMDBID (if you're on a french IP, the IMDB API sends name localized depending on your IP address). I see two problems with that :
So I'm really not seeing the point of the IMDB integration. For me it brings more problems than solutions. But maybe I'm missing something?
Hi Kilman,
trying to install this on my QNAP.
I've updated NodeJS to 4.5.0 using the procedure described in the other QNAP related issue.
I've been able to run npm install in the torznab folder without any errors.
I've been able to build the docker container without any errors (I had to stop the photo station as it wanted to created @__thumb files whenever something was copied in the docker app folder in the first step of the docker build).
But, when running the installed container, I get this log (username removed):
> [email protected] start /usr/src/app
> node server.js
info: Starting T411 proxy
info: Running in : /usr/src/app
info: Trying to log into T411 with user : 'xxxxxxx'
error: Cannot log in to T411 : Error: getaddrinfo EAI_AGAIN api.t411.ch:80
Not quite sure what to do now. Can anyone help? Thanks!
bonjour je viens de voir que la T411 change url : http://www.t411.ch/
car il on été bloquer
tu peut faire la modif stp
Je passe juste pour rappeler de faire le changement parce que chez moi ça ne fonctionne plus pour le moment.
Hi guys,
Everything is in the tittle :p
How can i install this on windows ?
Thanks for answers :)
Hello there,
I'm not sure that you're a french guy so I'll give a try in english :p
Could it be possible for you to add an automatic build of your project on the docker hub ? So I can add your awesome project that I use every day simply in my docker-compose file ?
It would be awesome !
Thanks a lot (and bigger thanks for your project ! :) )
Hello,
I'm using this awesome proxy for several month with Sonaar and recently I got an issue,
When I manually search for a tv show episode, Sonaar show me all the episodes of this tv show instead of the one I was looking for.
I tried with an other indexer and it's working fine. Maybe the t411 search API has been updead recently?
Thanks,
HI,
My Sonarr can't get the release from the indexer. It says:
"Getting release form indexer failed"
Any chack I can do ? I am running this in a docker and rebuilt it totally already.
Please advise,
Hi team,
When manual searching I can see irrelevant results. For instance with season 2, episode 8 of "Braquo" serie, the manual search result is the following :
Mr.Robot.S02E08.1080p.HDTV.x264-BRISK
Borgia s02e08 french 720p hdtv x264 [JMT]
Dragons: Defenders of Berk [720p VOSTFR] S02E08 Appetite for Destruction [Addic7ed][WEB-DL x264 AAC]
Dragons : Defenders of Berk S02E08 VOSTFR
2.Broke.Girls.S02E08.HDTV.XviD-AFG
Borgia.S02E08.FRENCH.HDTV.x264-JMT T411 312.9
Dragons.Defenders.of.Berk.S02E08.FRENCH.DVDRIP.x264-BIPBIP
2.Broke.Girls.S02E08.FRENCH.DVDRip.x264-JMT
2.Broke.Girls.S02E08.FRENCH.DVDRip.XviD-MiND
Dragons.Défenseurs.de.Beurk.S02E08.FRENCH.HDTV.720P
Thank a lot.
Regards.
Il me semble que depuis ce matin impossible de faire une recherche avec T411-Torznab via sonarr le test de connexion est en failed systématiquement.
je suis le seul peut être mais j'ai tout refais de a à z
hello i have an issue when i launch node server.js
module.js:485 throw err; ^ SyntaxError: /home/youngcesar/T411-Torznab/config.json: Unexpected token < at Object.parse (native) at Object.Module._extensions..json (module.js:482:27) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/home/youngcesar/T411-Torznab/server.js:5:14) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32)
config.json is good credentials modified
thank you
Hi,
I have recently had troubles to make radarr download the movie Logan using the manual search.
If you type only the movie name "Logan" within the "Film" category, you will have a lot of unrelated results.
However, if you add the movie year to the search query, you will most likely get the correct releases only.
Is it something possible ? Would there be any downside of this ?
Hi I've been trying to run your little fantastic piece of software as a service :)
I tried to simply follow something like that : https://doc.ubuntu-fr.org/tutoriel/comment_transformer_un_programme_en_service
or like that :
https://certsimple.com/blog/deploy-node-on-linux#node-linux-service-systemd
But i can't get it to work, could you give me hand ?
Thx :)
How can i setup torznab to run as service and autostart on FreeBSD system ?
Hi,
I got this error when trying to use your app
Server listening on port 9876
Got token : undefined
{ url: 'http://api.t411.io/torrents/search/?offset=0&limit=100',
headers: { Authorization: undefined } }
Exception : TypeError: Cannot call method 'forEach' of undefined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.