Open ChrisVilches opened 3 months ago
Started rewriting everything. The logic mostly doesn't have to be changed, but some imports are not working (it crashes the compilation/runtime) so those have to be changed. It seems the obj.is(SomeClass)
doesn't work (it seems they removed classes?) so I had to implement my own type guard functions.
Not all functions were rewritten, so some functionalities are missing (such as download, etc).
This is the file to continue updating until it's complete: https://github.com/ChrisVilches/Youtube-Podcast/blob/main/src/youtube/scraping.ts
My favorite functionalities now work on mobile.
Make sure to review commits: https://github.com/ChrisVilches/Youtube-Podcast/commit/701419bc3df193520440924f8e456955f8119bae
I think this can be fixed by upgrading the
youtubei.js
version.Also, when upgrading
youtubei.js
a lot of errors appear, so I'll probably have to rewrite everything from scratch. It's just the mapping file (from scraped data to domain objects) so it's not too bad.