compactd / compactd

Remote music player that supports adding more content
MIT License
87 stars 9 forks source link

How should I plug gazelle trackers? #58

Open almet opened 6 years ago

almet commented 6 years ago

In the settings, I've entered a gazelle tracker set of credentials, but it doesn't seem to do anything. Is there anything special I need to do to make this work?

vinz243 commented 6 years ago

You might need to reload the page, and it should display results in the album list view (at least in 1.3.0)

almet commented 6 years ago

Thanks for taking the time to answer. But I don't understand how this is supposed to work: when I click on the new albums, it says « Not available » and that's all. Maybe this is related to the fact that I don't have the websocket connection working?

vinz243 commented 6 years ago

It's working, did you set the password too? Also, you might want to try again then check the logs

pm2 logs compactd
almet commented 6 years ago

That's exactly the road I've been riding :-)

I was having a "wrong password" error, but now it seems a bit different:

0|compactd |                                       cascade ERROR   name: 'FetchError'
0|compactd |                                       cascade ERROR   message: 'maximum redirect reached at: https://apollo.rip:443/login.php'
0|compactd |                                       cascade ERROR   stack: FetchError: maximum redirect reached at: https://apollo.rip:443/login.php
vinz243 commented 6 years ago

Hmm weird. In compactd 1.3.0 the login function is using redirect manual:

https://github.com/compactd/compactd/blob/master/server/src/features/cascade/GazelleIndexer.ts#L41-L52

But here in version 1.6.3 of node-fetch:

https://github.com/bitinn/node-fetch/blob/v1.6.3/index.js#L140-L149

No error should be thrown ...

almet commented 6 years ago

So, apparently this is not working properly. What would you recommend to me to work on a fix for this? Is there a series of tests I can run against the code, or a way to run this part of the code locally in order to find a fix?

Thanks for the help, that's very appreciated. Oh, and by the way, I've compiled and installed your android client, it's really great as well! continue on rocking ;-)

vinz243 commented 6 years ago

I'm not really sure... The best idea would be to debug the app and try to correct this, however I don't have an apolo account so I can't do it.

If you want to do it, you should clone compactd on your desktop then try add your tracker and then debug the server

The best breakpoint would be https://github.com/compactd/compactd/blob/master/server/src/features/cascade/GazelleIndexer.ts#L37 imho