SchizoDuckie / DuckieTV

A web application built with AngularJS to track your favorite tv-shows with semi-automagic torrent integration
http://schizoduckie.github.io/DuckieTV/
Other
1.12k stars 277 forks source link

Auto Download No Longer Working #1387

Closed timwithtots closed 1 year ago

timwithtots commented 1 year ago

What build of DuckieTV are you using (Standlone / Chrome Extension (New Tab / Browser Action)) Standalone

What version of DuckieTV are you using (Stable 1.1.x / Nightly yyyymmddHHMM) nightly v202303121925

What is your Operating System (Windows, Mac, Linux, Android) Windows

Describe the problem you are having and steps to reproduce if available Over the last month Auto-download seems to work sporadically. Generally speaking auto-download will work maybe 2 of 20 times I load Duckie. Under statistics it states [Auto Download Service (enabled but not active)

Attach any DuckieTV statistics or Developer Console logs if available

garfield69 commented 1 year ago

On your Dtv page press F12 to open the development tools page, and click on the Console tab to view the log and look for error messages related to your torrent client. Also use the ADSM to get a view of the Auto-download activity to see what is happening when ADS tries to schedule a download for an episode. Here are a few links to wiki pages that may give you better insight to ADS, ADSM and configuring and connecting Dtv to your torrent client. https://github.com/SchizoDuckie/DuckieTV/wiki/Auto-Download-FAQs https://github.com/SchizoDuckie/DuckieTV/wiki/Auto-Download-FAQs#auto-download-service-monitor https://github.com/SchizoDuckie/DuckieTV/wiki/Setting-up-Torrent-Clients-for-DuckieTV

if you need further help diagnosing the issue, then start by providing details on which torrent client you are using, its version, so I can cross test to verify that the torrent client you are using has not had any updates that require Dtv support changes. Let me know how you get on.

timwithtots commented 1 year ago

Appreciate the prompt reply! I tried a full re-install (deleted the Duckie folder prior) and now Duckie doesn't want to load properly. The program launches however the calendar is completely blank if I load it AFTER I launch/start my VPN service (Nord). If I launch it prior to starting Nord the calendar is working just fine however all other data fails to load. Totally separate issue but I wanted to call this out. This didn't start until after the re-install.

With Nord disabled/not running I'm still having issues with auto-download and loading Duckie in general. The audo-download icon on the left of Duckie displays a yellow dot and when I click anything on the left menu bar everything just shows "loading".

For my torrent client I'm using qBittorrent v4.5.2 (64-bit)

I'm seeing the following errors:

Failed to load resource: net::ERR_CONNECTION_REFUSED Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID Uncaught ReferenceError: Loggr is not defined

I've been using Duckie for about 3-4 years now I believe and this is really the first time I've run into an issue. Thank you for an amazon product and this great support. Any help is much appreciated!

garfield69 commented 1 year ago

Urg. OK, lots of factors at play here. I don't have nordVPN, but I presume this is a system level VPN, which is to say, that once started all traffic generated on that windows PC is routed in and out of the VPN. So for a test on my win10 sandbox,

Dtv takes some time to connect to qBt 4.5.2, as the first attempt it tries always fails, but the second attempt within the next 30 seconds usually connects. Then ADS launches, uses my default Search Engine (in this case its TGx) to find an episode and begins to download. I use the ADSM to check that the episode was found and sent to qBt and I check the client to see that a torrent is active.

So I know in principle, that it is possible to run Dtv, qBt and a system VPN, so any problems that arise are all down to your system setup and VPN, qBt or Dtv settings.

Lets try to first establish that Dtv is working.

Its important to remember that the sequence in which you start up the VPN, qBt and Dtv is important, and if VPN is shutdown or is disconnected, then you have to shutdown qBt and Dtv too, before restarting the VPN sessions again. Also, Dtv should be started last. If you shutdown qBt then you need to shutdown Dtv too.

Let me know how you get on.

timwithtots commented 1 year ago

Confirmed VPN/QBT were closed and nothing was running via Task Manager. Once confirmed I started going down the list of steps you provided and I got stuck pretty early on.

I loaded DTV > disabled ADS and trakt.tv started it's scan and got stuck on the final scan. In my case this was ~136/136. It was stuck for ~5 minutes and any time I clicked anywhere else in DTV it would just show "loading". I ended up force closing to restart DTV and now when launching DTV the calendar shows as being accurate however any time I click on anything I just see "loading" on the righthand side.

Please let me know if you want the remaining steps checked and I'll go down the list.

garfield69 commented 1 year ago

Interesting.

timwithtots commented 1 year ago

Hoping it's just something simple....

[bagblfnohpiddokbpaacecffdboomafe-1682107900604.log]()

garfield69 commented 1 year ago

It looks like you have the Opt-In Error tracking enabled (its a button at the bottom of the Dtv About page), but since you cannot access that service (the certificate at api.loggr.net/ appears to be expired so that service is not available ATM), so you are getting net::ERR_CERT_AUTHORITY_INVALID, which is crashing the Dtv JavaScript. I just tested this on my sandbox and I get the same issue now.

A little tricky to fix, but I managed it, so you can try to have a go too. The key is to get in quick as soon as you start Dtv, and switch off that option. So

if you get in early enough it should allow you to navigate the rest of the Dtv pages. If you cannot get it turned off then I will need to look at how we can turn it off some other way, probably with a command from the console log, but I hope we don't have to go there.

timwithtots commented 1 year ago

Okay...I was able to get in quick enough and disable. I remember I enabled that because of the ADS issue.

DTV is loading just fine both with/without VPN running prior. I enabled ADS and yesterdays shows kicked off but anything prior didn't. Just a quick call out...I had it set to 4 days then moved it to 10 recently trying to fix ADS not working so its currently set to 10. To try and push the ADS for anything prior to yesterday I changed the Default Search Provider to TGx and the pending torrents prior to yesterday kicked off.

If it's cool with you I'd like to keep this open to track this over the next few days to see how ADS works going forward.

To summarize my current settings FWIW:

Default Search Provider: TGx Auto DL Period: 10 days Auto DL Delay: 15 minutes (I believe I changed this awhile ago when shows started becoming widely available on streaming services earlier than the original air time.

I should have a better idea how ADS is working by Mon/Tues

Thanks again for the awesome support!

garfield69 commented 1 year ago

That is good news. Yes by all means monitor and report back. I'll close the ticket in a week if I haven't heard anything before then. I've done some digging into the log_GR service that we've been using since 2017, it seems that they are no longer providing that log tracking service, so I shall be releasing an update with that option removed.

ggervais5 commented 1 year ago

I too, am using the same version of Dtv on Windows Pro (64 bit). Since I installed this version, auto download doesn't find anything, yet when I manually search, I do find the same shows. My default provider is 1337x, which I've used for eons with great success, until now. I've tried the workaround posted on Reddit, but it doesn't work (the service runs, but it doesn't find torrents) with this version.

timwithtots commented 1 year ago

FWIW I also use 1337 for certain shows and can confirm I’ve experienced this issue with that site as well. I’m also using Pro 64 bit.

garfield69 commented 1 year ago

FYI Yes, the web site 1337x.to is not finding any of the shows on my current weeks schedule, so this is not a problem with Dtv but with the 1337x web site and there is nothing I can do about it. If you have turned on the Dtv multi-search-engine manual search, you can find which search engine returns the most results and make that your default search engine. I use TGx currently. The ADS only uses the default search engine, or optionally an alternate search engine for a specific series if you set that override in that series settings.

garfield69 commented 1 year ago

re: 1337x.to you may be interested in https://torrentfreak.com/1337xs-search-is-broken-cant-find-recent-torrents-230425/

ggervais5 commented 1 year ago

Interesting. I switched the primary torrent engine yo TgX and it appears no better than 1337x for auto downloading. I'm testing Jackett with DuckieTV to see if I can get this working again.

On Tue, Apr 25, 2023, 6:06 p.m. garfield69 @.***> wrote:

re: 1337x.to you may be interested in https://torrentfreak.com/1337xs-search-is-broken-cant-find-recent-torrents-230425/

— Reply to this email directly, view it on GitHub https://github.com/SchizoDuckie/DuckieTV/issues/1387#issuecomment-1522527147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMRPHPJ7TD5RPWXMNPEAQDXDBKFRANCNFSM6AAAAAAXGIYBDM . You are receiving this because you commented.Message ID: @.***>

garfield69 commented 1 year ago

I'm testing Jackett with DuckieTV

good idea. Most sites seems to be activating cloudflare challenges these days to protect against DDoS attacks and whatnot, so its possible that the Dtv native search engines are not working because you are getting cloudflare challenges that Dtv cannot resolve. Jackett in conjunction with the flaresolverr proxy can handle most of the simple cloudflare challenges, so using Dtv with the Jackett indexers could be a way in.

ggervais5 commented 1 year ago

I got the idea from Sonarr. Are you still looking for developers to help out with Dtv? I know one with Node.js experience.

I am a c# developer, which doesn't help.

Greg

On Tue, Apr 25, 2023, 6:43 p.m. garfield69 @.***> wrote:

I'm testing Jackett with DuckieTV

good idea. Most sites seems to be activating cloudflare challenges these days to protect against DDoS attacks and whatnot, so its possible that the Dtv native search engines are not working because you are getting cloudflare challenges that Dtv cannot resolve. Jackett in conjunction with the flaresolverr proxy can handle most of the simple cloudflare challenges, so using Dtv with the Jackett indexers could be a way in.

— Reply to this email directly, view it on GitHub https://github.com/SchizoDuckie/DuckieTV/issues/1387#issuecomment-1522549989, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMRPHPDIJR3P5ZVR45VXU3XDBOS3ANCNFSM6AAAAAAXGIYBDM . You are receiving this because you commented.Message ID: @.***>

garfield69 commented 1 year ago

There is no node.js code in Dtv, it is all AngularJS 1.7.3 BTW it appears that 1337x have fixed their issue now, the spotlight from torrentfreak must have jolted someone into action ;-D

timwithtots commented 1 year ago

Just wanted to provide an update - It seems ADS is working just fine now. I'm not sure if it was the re-install, enabling multi-torrent search, etc....but either way I'm good to go on my end. Thanks again for the support and getting this all squared away.

ggervais5 commented 1 year ago

Oddly enough, ADS started working for me too, without reinstalling, or any of the things timewithtots did. I suspect the timing was coincidental - the issue is likely to be at the Torrent site end, not within DuckieTV. For me, ADS stopped work, and started working on its own.

From: timwithtots @.> Sent: Wednesday, April 26, 2023 10:35 AM To: SchizoDuckie/DuckieTV @.> Cc: ggervais5 @.>; Comment @.> Subject: Re: [SchizoDuckie/DuckieTV] Auto Download No Longer Working (Issue #1387)

Just wanted to provide an update - It seems ADS is working just fine now. I'm not sure if it was the re-install, enabling multi-torrent search, etc....but either way I'm good to go on my end. Thanks again for the support and getting this all squared away.

— Reply to this email directly, view it on GitHub https://github.com/SchizoDuckie/DuckieTV/issues/1387#issuecomment-1523627677 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMRPHJ3GV3IEHSFEUA4HQ3XDE6BNANCNFSM6AAAAAAXGIYBDM . You are receiving this because you commented. https://github.com/notifications/beacon/ALMRPHOX7D4L3LIKS6F2USDXDE6BNA5CNFSM6AAAAAAXGIYBDOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS22C3J2.gif Message ID: @. @.> >