- Notifications
You must be signed in to change notification settings - Fork0
A Shiny Application for 'trakt.tv' TV Show Data. The new incarnation of trakt.jemu.name
License
Unknown, MIT licenses found
Licenses found
jemus42/attrakttv
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Just a packaged shiny app relying on{tRakt} to get data out ofhttps://trakt.tv and display it nicely.
You can find it currently deployed atattrakttv.tadaa-data.de.
Please open an issue if you encounter crashes.
You can install the latest version of attrakttv from GitHub:
remotes::install("jemus42/attrakttv")
The app needs both credentials for thetrakt.tv and thefanart.tv API, seeattrakttv.env-sample
for reference. Plug inyour keys and either rename the file to.Renviron
in the currentworking directory or copy these values to your user/global.Renviron
.
Then you can callattrakttv::attrakttv_app()
and try to add a show,which will then hopefully open a browser window displaying a trakt.tvPIN for you to enter at the R console.
You can also achieve this by calling any data-retrieving function fromthe{tRakt}
package.
The the downloaded show data is stored in a SQLite database locatedunder~/.local/attrakttv/db/tRakt.db
by default, but you can changethat value via the aforementioned configuration file.
Since this thing requires API keys for bothhttps://trakt.tv andhttps://fanart.tv, you’ll need to create accounts and get credentialsfor those first.
Copy the file viacp attrakttv.env-sample attrakttv.env
and plug inyour values.
Next you’ll need to create a{httr}
OAuth2 token. The easiest way isto call some function from{tRakt}
that uses the trakt.tv API(e.g. tRakt::search_query("Counterpart")
) which will then prompt youfor an authentication PIN and open a corresponding browser window. Onceset up, the token should be located at.httr-oauth
.
Once bothattrakttv.env
and.httr-oauth
you can run
docker build -t attrakttv .docker run --rm -p 3838:3838 --run-as=shiny attrakttv
And the app will be running atlocalhost:3838
.
Note that currently the SQLite database is ephemeral.
You can usedocker-compose
with the includeddocker-compose.yml
which will put the database in a volume calledtrakt_db
. This ismapped to a local volume you have to define via environment variable setin.env
, socp .env-sample .env
and plug in your desired path (whichmust exist).
Regarding the volume thing:This washelpful
Please note that the ‘attrakttv’ project is released with aContributorCode of Conduct. By contributing to this project,you agree to abide by its terms.
About
A Shiny Application for 'trakt.tv' TV Show Data. The new incarnation of trakt.jemu.name