Giter Club home page Giter Club logo

Comments (4)

tresf avatar tresf commented on August 20, 2024

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.

Umcaruje avatar Umcaruje commented on August 20, 2024

@tresf Do you know who deleted the Playlist?

from lmms.io.

tresf avatar tresf commented on August 20, 2024

@tresf Do you know who deleted the Playlist?

No. I expect someone to chime in soon though. 🎱

from lmms.io.

tresf avatar tresf commented on August 20, 2024

Preview here:

http://lmms.io:8005/community/#youtube

from lmms.io.

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.