Comments (4)
Thanks.
Yeah, it's trying to do a foreach
on an empty object. When the web JSON data is empty (or appears like an empty data set), it silently falls back to the local filesystem cache version. However, when the local filesystem cache is empty, it is a hard crash and PHP explodes. We could probably make a prettier error message, but since the YouTube content was all deleted, this will continue to remain empty and display this error. I anticipated this as you can see in the comments.
YouTube's API changes ever-so-slightly depending if you want to grab playlist items or uploaded items, but we have neither right now, so we're in a waiting game. Here's the snippet explaining it:
// FIXME - Playlists probably aren't the best thing to feed to our page.
// Consider uploads instead (once we have some).
$playlist_id = 'PLQ3DxyvaP9n270bhIYnif5jnTlZSdml3G';
$obj = get_json_data('youtube', 'playlistItems', '&playlistId=' . $playlist_id . '&part=snippet&maxResults=25');
-Tres
from lmms.io.
@tresf Do you know who deleted the Playlist?
from lmms.io.
@tresf Do you know who deleted the Playlist?
No. I expect someone to chime in soon though. 🎱
from lmms.io.
Preview here:
http://lmms.io:8005/community/#youtube
from lmms.io.
Related Issues (20)
- LSP is broken HOT 1
- IRC channel HOT 10
- Sharing Platform Search Function Does Not Work on Website HOT 3
- www.lmms.io is not resolved to the IP of lmms.io HOT 1
- Error 500 on download page when 'analytics.js' is blocked HOT 2
- Following the Web Content Accessibility Guidelines (WCAG) for contrast
- Add BOL9 to Showcase tab HOT 1
- forum activation email HOT 1
- Password resets not working
- Comment count on LSP displaying number of ratings HOT 3
- LSP "Drum'n'Bass" projects page lists no results HOT 1
- Sharing Platform section does not open on localhost HOT 1
- Nightly downloads working sporadically HOT 3
- Nightly downloads could be named more intuitively HOT 1
- Link from chatGpt is giving 404 error HOT 1
- Update the Discord logo to its latest version HOT 2
- Error 500 - Windows nightly versions NOT downloadable HOT 3
- Incorporate the Gitpod Ready-to-code system HOT 1
- Add a funding file
- I can't download Lmms ga8d765f8d HOT 1
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 lmms.io.