Giter Club home page Giter Club logo

Comments (11)

radityaharya avatar radityaharya commented on June 21, 2024 1

Thanks now it works but the period of the events is 28 days ago and 2 days ahead by changing the day numbers in the link or in the website it doesn't change anything For example https://trakt-ical.radityaharya.com/?key=acac792ee27a38b1a4c8850e039a1cab06e1f6e7&days_ago=30&period=365

hmm, that's strange. Ill have a look at it over the weekend

from trakt_ical.

radityaharya avatar radityaharya commented on June 21, 2024

You can directly use the hosted version, which is accessible at https://trakt-ical.radityaharya.com/. Alternatively, if you prefer to host the application yourself, please follow the steps outlined below:

Set the following environment variables:

HOST: The base URL of the host.
MONGO_URL: MongoDB URL.
PORT: The port on which you will be hosting the application.
SECRET_KEY: A randomly generated string.
TRAKT_CLIENT_ID: Obtain this from https://trakt.tv/oauth/applications.
TRAKT_CLIENT_SECRET: Obtain this from https://trakt.tv/oauth/applications.

Run the serve_ical file by running python serve_ical --serve or building the docker image and running it. Ensure that the application is accessible to the internet as Google Calendar needs to access it.

Once you have hosted the application or accessed the provided link, it will automatically redirect for authentication with Trakt. Following successful authentication, you will obtain your ICal URL.

from trakt_ical.

MuhammadBayiz avatar MuhammadBayiz commented on June 21, 2024

Thanks for the explanation, i used the hosted version it seems to work well for now. Just one issue the calendar won't show upcoming episodes for more than 2-3 days i just see one upcoming episode is this the expected behavior? Or it's a bug?

from trakt_ical.

MuhammadBayiz avatar MuhammadBayiz commented on June 21, 2024

And how often the ical syncs with the trakt Calendar?

from trakt_ical.

radityaharya avatar radityaharya commented on June 21, 2024

Thanks for the explanation, i used the hosted version it seems to work well for now. Just one issue the calendar won't show upcoming episodes for more than 2-3 days i just see one upcoming episode is this the expected behavior? Or it's a bug?

I'm not sure, i set it to fetch 365 days ahead, 30 days from when the request is made. I might add an optional query param to change the start date and period

And how often the ical syncs with the trakt Calendar?

The script should fetch the latest data from trakt's API on every request with 1h cache retention. But based on a quick google search they update the calendar feed on every 8 hours basis.

from trakt_ical.

radityaharya avatar radityaharya commented on June 21, 2024

It should be fixed now.

from trakt_ical.

MuhammadBayiz avatar MuhammadBayiz commented on June 21, 2024

I just checked, now it doesn't fetch any events:
https://trakt-ical.radityaharya.com/?key=acac792ee27a38b1a4c8850e039a1cab06e1f6e7&days_ago=90&period=365

from trakt_ical.

MuhammadBayiz avatar MuhammadBayiz commented on June 21, 2024

Server issue?

from trakt_ical.

radityaharya avatar radityaharya commented on June 21, 2024

Server issue?

whoops, fixed it

from trakt_ical.

MuhammadBayiz avatar MuhammadBayiz commented on June 21, 2024

Thanks now it works but the period of the events is 28 days ago and 2 days ahead by changing the day numbers in the link or in the website it doesn't change anything
For example
https://trakt-ical.radityaharya.com/?key=acac792ee27a38b1a4c8850e039a1cab06e1f6e7&days_ago=30&period=365

from trakt_ical.

MuhammadBayiz avatar MuhammadBayiz commented on June 21, 2024

Now with the latest commit it works great fetches 30 days ago and 90 days ahead, thanks for your effort :)

from trakt_ical.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.