Git Product home page Git Product logo

Comments (3)

squiter avatar squiter commented on May 30, 2024

Maybe we can fix it with a simple (remove nil '(nil 1 nil 2 nil 3 nil 4))... 🤔
I'll try to fix it this week

from ivy-youtube.

walseb avatar walseb commented on May 30, 2024

Yeah but then it will not display the most relevant video, which is bad if you search for a particular video since it will never show up.
Anyway, the problem must be with (cl-loop for x being the elements of (ivy-youtube-tree-assoc 'items *qqJson*) because doing

    (cl-loop for x being the elements of (ivy-youtube-tree-assoc 'items *qqJson*)
             do
	     (add-to-list 'test-variable x) ;; <- The only change I made to debug
	     (push (cons (cdr (ivy-youtube-tree-assoc 'title x))
                         (cdr (ivy-youtube-tree-assoc 'videoId x))) *results*))

results in test-variable being a list with only 49 title entries and every title is there except the one that's normally nil. Also (ivy-youtube-tree-assoc 'items *qqJson*) has 50 correctly formatted title entries so the problem can't be there.
I'm not sure exactly how cl-loops works, maybe you know how to fix this loop?

from ivy-youtube.

squiter avatar squiter commented on May 30, 2024

Fixed in #16

from ivy-youtube.

Related Issues (11)

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.