Comments (5)
Hi,
I am not sure what you mean by "they haven been successfully uploaded and it's getting used whenever I play something but none of the album artworks ever get uploaded". Do you see something like DiscordAPI: Upload of asset <name> was successful
when running NowPlaing-for-TIDAL from the command line but it doesn't appear on the Discord application page under Rich Presence
-> Art Assets
?
from nowplaying-for-tidal.
What I meant is that the default "tidal" icon gets uploaded (so I guess my config file is configured correctly), but whenever I play music it shows that one instead of the album artwork and it doesn't seem to upload anything besides that.
How would I go about running the program from the command line so I can see what the logs are saying?
from nowplaying-for-tidal.
I just checked and I didn't actually implement that the logs are written to the command-line. The only way to see them is by heading into Visual Studio and building and running the application from source.
I quickly did this and I am seeing the following line: NowPlaying-for-TIDAL Error: 0 : TidalApi: Could not get the key from TIDAL desktop for the following Reason: Could not find: '[info] - Session was changed'
Basically, the issue lies in SimpleTidalApi. I need it to query the TIDAL API about further information about the song, for example, a URL to its album artwork. For the TIDAL API I need a token, which I parse from TIDAL's logs. This is the part that is currently broken because TIDAL changed their logging output.
I had a quick look, however, I currently have no time to fix this but you can give it a shot if you'd like. I recommend completely throwing out my weird string slicing operations (for some reason you write weird code when you are younger :p) and use a regular expression instead to find the token in TIDAL's log file. You can also find a test there to quickly check whether you can query TIDAL's API using this token.
I will probably fix this at some point in the future but for now I have to work on other stuff. I am also now working under Linux where I can't use this project, hence the low priority. If you decide to fix it yourself, you can create a pull request afterwards. Let me know if you have any questions along the way.
from nowplaying-for-tidal.
I don't think it's logging the token every time you restart the app, this line is the only thing I could find relating to the login and it only appeared after I logged in and out again. Not sure if this is the one you're looking for.
from nowplaying-for-tidal.
I am actually not sure, would need to try it out. Here is the test I mentioned earlier: https://github.com/Kaufi-Jonas/SimpleTidalApi/blob/master/SimpleTidalApi/SimpleTidalApiTests/ClientTests.cs
You can try hardcoding the key in that file with what you found and check whether you get a result back.
from nowplaying-for-tidal.
Related Issues (6)
- Support for macos :) HOT 1
- Album Artwork Handling HOT 5
- DiscordMfaToken HOT 3
- No idea what happened there HOT 1
- Better artwork implementation 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 nowplaying-for-tidal.