Comments (4)
The problem with the trailing slash was with my code. I have since fixed that, but I cannot push it until I finish my current YouTube API compliance review.
The problem with certain channels not working at all is due to a limitation with the YouTube API. There is no way to get a channel from its custom URL, so popyt sort of mimics this by grabbing the end of the URL and searching for it. In the case of "fosterkittensofficial", their actual username is "Cindy Congdon", so "fosterkittensofficial" returns no results (and if it did, they would most likely be garbage). I have also edited the documentation of the getChannel()
function to clarify this.
Once my compliance review is complete, I will push these new changes and close this issue. Thanks!
from popyt.
No worries and no rush! Glad a cause could be found.
Yeah for urls where there's no id or username, I just grabbed the html as is then regexed the id:
/(?<="channelId":")[A-Za-z0-9]{24}/g
/(?<="externalId":")[A-Za-z0-9]{24}/g
/(?<="browseId":")[A-Za-z0-9]{24}/g
Wasn't sure if channelId
was always present so the other two are just fallbacks.
from popyt.
from popyt.
Oh 100% agreed, just an account of how one person ended up resolving it.
from popyt.
Related Issues (20)
- Action Required: Fix Renovate Configuration
- Add ability to specify parts when fetching entities without editing the static member of the entity's class
- getVideoComments gives error "commentThreads not found" HOT 7
- Fetchvideos max number of elements HOT 9
- Dependency Dashboard
- Error: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential HOT 5
- src/index.ts AI analysis
- src/entities/video.ts AI analysis
- src/util/caching.ts AI analysis
- Fetch multiple entities in one request HOT 1
- Add order option on to search methods HOT 1
- Switch private methods and fields to #truePrivate
- Resumable uploads
- Update GitHub repository in package.json HOT 1
- Refactor OAuth methods
- More consistent testing of OAuth methods HOT 1
- Refactor OAuth tests
- Fix OAuth methods/tests
- Fix caching to save quota when requesting less parts than are already cached
- Standardize OAuth method HTTP requests (need an OAuthService)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from popyt.