cecobask / imdb-trakt-sync Goto Github PK
View Code? Open in Web Editor NEWAutomatic sync from IMDb to Trakt (watchlist, lists, ratings and history) using GitHub actions.
License: MIT License
Automatic sync from IMDb to Trakt (watchlist, lists, ratings and history) using GitHub actions.
License: MIT License
Maybe add in a new secret by the name of IMDB_RATINGS_ID which uses the ur****** variable to scrape the ratings list as currently this only scrapes the watchlist and any other lists that have been created. There is no default list ID for the ratings list so it is treated differently perhaps?
Similar to how it's done here https://github.com/josh/imdb-trakt-sync
Could you verify the steps provided in the README?
I was unable to locate the correct value to use as the TRAKT_ACCESS_TOKEN
environment variable through their site. I had to resort to this random website to pull the token for me.
Hello,
The repository and many other forks are getting this error while syncing.
This problem is due to the Trakt website being down.
Anyone with this problem can track the Trakt status on https://status.trakt.tv
I just used this tool to sync imdb ratings to trakt, very useful!
Since I already added something to trakt manually, in the logs it showed some deletions: 1 show from watchlist, and 1 movie and 2 shows from history+ratings.
So I'm thinking two additional run modes would be useful:
Also, a log file with all stuff that was executed would be perfect in case some huge erasing happens, in order to be able to revert them (even manually). In the github action you could just cat
it after run to have it logged.
From my side I plan to only use trakt from now on, so these would be useful additions for others in the future, rather than for me specifically.
Thanks for the effort!
I followed the instructions in the README about setting up the environment variables for GitHub Actions in a forked repository. When manually running the "sync" action in GitHub on my forked repository, I get the following output:
Run go run cmd/imdb-trakt-sync/main.go
go: downloading github.com/joho/godotenv v1.4.0
go: downloading github.com/PuerkitoBio/goquery v1.8.0
go: downloading github.com/andybalholm/cascadia v1.3.1
go: downloading golang.org/x/net v0.0.0-20210916014120-12bc252f5db8
2022/11/08 19:30:56 error scraping trakt pin code: pin code not found
exit status 1
Error: Process completed with exit code 1.
go build -o build/its main.go
./build/its sync
Error: error creating syncer: failure hydrating trakt client: failure generating auth codes: http request POST https://api.trakt.tv/oauth/device/code returned status code 401: unexpected status code 401
make: *** [Makefile:7: sync] Error 1
Error: Process completed with exit code 2.
I see it in your actions log too
Getting this error and cannot get sync to finish
{
"level": "fatal",
"ts": "2023-01-06T12:08:13Z",
"caller": "syncer/syncer.go:92",
"msg": "failure hydrating imdb client",
"error": "failure fetching trakt item id: unknown trakt item type season",
"stacktrace": "github.com/cecobask/imdb-trakt-sync/pkg/syncer.(*Syncer).Run\n\t/home/runner/work/imdb-trakt-sync/imdb-trakt-sync/pkg/syncer/syncer.go:92\nmain.main\n\t/home/runner/work/imdb-trakt-sync/imdb-trakt-sync/cmd/syncer/main.go:8\nruntime.main\n\t/opt/hostedtoolcache/go/1.18.9/x64/src/runtime/proc.go:250"
}
Any idea what might be wrong? I tried refreshing all secrets but with no avail
Just an ideia.
Is it possible to implement sync between two trakt lists? The idea is to sync lists between two accounts so we could use it kinda like colab lists.
I've updated to the latest and my secrets are correct, but I'm getting this error. I do have tv shows in my watchlist list but that was said to be fixed in a previous version.
Run go run cmd/syncer/main.go
{"level":"fatal","ts":"2023-01-[14](https://github.com/kunall-ll/imdb-trakt-sync/actions/runs/3917021448/jobs/6696551623#step:4:15)T05:09:09Z","caller":"syncer/syncer.go:62","msg":"failure initialising imdb client","error":"failure hydrating imdb client:
failure scraping imdb user id: imdb user id not found: failure scraping imdb response for selector .user-profile.userId and attribute data-
userid","stacktrace":"github.com/cecobask/imdb-trakt-sync/pkg/syncer.NewSyncer\n\t/home/runner/work/imdb-trakt-sync/imdb-trakt-sync/pkg/syncer/syncer.go:62\nmain.main\n\t/home/runner/work/imdb-trakt-sync/imdb-trakt-sync/cmd/syncer/main.go:8\nruntime.main\n\t/opt/hostedtoolcache/go/1.18.9/x64/src/runtime/proc.go:250"}
exit status 1
Error: Process completed with exit code 1.
I created the Trakt Api-App with the recommended "urn:ietf:wg:oauth:2.0:oob" url and get a Code like one if i'm about to add a new device. I added this code to the reqbin.com/veotsc62 Snippet and got an access token which I added in the template of the branch secret action (also I added all other Values from IBMD and Trakt).
I'm totally new to github and only got here, because I wanted to sync my imdb records with the one of trakt. :-)
Im always getting an sync error:
Process completed with exit code 1.
Currently I'm out of options and would kindly ask for some help.
I'm not sure this is the right way, or place to do so, but i didn't find a "contact" form of any kind.
Thanks in advance Sky
I have a list named "Cabeça" and i had to remove the "ç" from the name in order to successful sync the list.
I get the following error when trying to sync my imdb lists (just for this one list, 3 others sync fine).
{"level":"fatal","time":"2023-04-12T13:25:30Z","caller":"syncer/syncer.go:96","message":"failure syncing lists","error":"failure adding items to trakt list films-to-watch: failure unmarshalling trakt response: EOF","stacktrace":"github.com/cecobask/imdb-trakt-sync/pkg/syncer.(*Syncer).Run\n\t/home/runner/work/imdb-trakt-sync/imdb-trakt-sync/pkg/syncer/syncer.go:96\nmain.main\n\t/home/runner/work/imdb-trakt-sync/imdb-trakt-sync/cmd/syncer/main.go:8\nruntime.main\n\t/opt/hostedtoolcache/go/1.18.10/x64/src/runtime/proc.go:250"}
This happens whether I define the lists by their ID, or choose "all". Running with dry-run works fine, it lists all the titles that it would have added, but running it in "full" mode returns the above message. The list is large - 1029 items, though I have trakt vip to support that list size. I tried it with reducing the number of items and it still didn't work. Running it with just the other 3 lists works fine (largest one of those is 702 items).
Please let me know if you have any suggestions or if you need any other information.
Hey, I just stumbled across your project and it works amazing. I only got one little feature request:
Would it be possible to mark a movie as watched on Trakt when the rating from IMDb is synced? I now only got the rating synced but it's not in the history.
Best Regards
Nico
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.