Git Product home page Git Product logo

Comments (5)

garret1317 avatar garret1317 commented on August 16, 2024

need:

  • url format: 20230607062200 - YYYYMMMDDhhmmss - 29-hour time is valid - handled in ShareIE
  • iso format: for noa (tracklist), already handled by datetime.isoformat() - handled in _extract_chapters()
  • timetable api: YYYYMMDD, 0 midnight - 5 am is included in previous day - handled in _unfuck_day()
  • unix timestamp

timezone handled in:

  • _timestring_to_datetime with datetime.timezone
  • _get_programme_meta with +0900 in unified_timestamp

from yt-dlp-rajiko.

garret1317 avatar garret1317 commented on August 16, 2024
  • url format: 20230607062200 - YYYYMMMDDhhmmss - 29-hour time is valid - handled in ShareIE

bit more complicated than that

on the site, seconds and minutes get clamped to 59, hours get clamped to 24
but share urls do indeed just go on forever

from yt-dlp-rajiko.

garret1317 avatar garret1317 commented on August 16, 2024

just to comment a bit on the current solution:

it's definitely not perfect, there's still some jank etc etc
but its a hell of a lot better than what i had before lol

i think ideally i'd've liked to extend upon datetime.datetime, so id still get all the nice functions it has that i have to do some jank to get to
but i couldn't figure out how and i just wanted to get on with it, so i have the current solution of doing passthrough for the couple of things i need that are in datetime.datetime
again, not perfect, but much better than what came before

from yt-dlp-rajiko.

garret1317 avatar garret1317 commented on August 16, 2024

hm, here's a hack for handling the days in the share time
take away any days above 28 (lowest month end), then add them back in the datetime

not sure if it'll work yet, just noting down so i don't forget

from yt-dlp-rajiko.

garret1317 avatar garret1317 commented on August 16, 2024

days above the end of the month dont work on the site
wasnt able to check before because it wasnt quite the end of the month yet

from yt-dlp-rajiko.

Related Issues (20)

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.