Giter Site home page Giter Site logo

lyricist's People

Contributors

414owen avatar jorikschellekens avatar swapnilraj avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

swapnilraj

lyricist's Issues

Add cache for lyrics

There should probably a cache for the lyrics. Possible keys for the lyrics could be the video title or the parsed video title, maybe both could be used.

There would be cases where the parsed title/parsed information can be re-used across different videos.

Overhaul for the tag parser

The tag parser in its current state is actually broken, the format for how YouTube has the meta data for a video in the description is different; the title is broken into two fields one for artist and one for song.

A small sample script to test that works with the new layout is below. The script works once the description box is expanded.

Array.from(document.getElementById('collapsible').children)
  .map(c => c.innerText)
  .filter(c => c.indexOf('Artist') !== -1 || c.indexOf('Song') !== -1)
  .map(c => c.split('\n'))

Project needs test

This issue is made to track the pull request and all the discussion regarding tests, specifically unit tests.

Clean up the cached mutation handler

The current implementation of the mutation handler has two issues

  1. questionable state
  2. the events in the mutationList as passed to the handler are chronologically indistinguishable. Repeated evaluations of Date.now() is technically incorrect.

Fix metadata extraction from the title

The current way of extracting the artist name and the song title do not account for the the fact that the song title can have dashes in it.

Example Kasabian - Re-wired, with the current approach the the metadata object looks like :-

{
  artist: 'Kasabian - Re',
  title: 'wired',
}

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.