Youtube titles come in a rich variety of ways:
Artist - Track.mp4
Artist-Track
Artist -- Track
Artist - Track lyrics
Artist - Track (HQ)
Artist = Track (Official Video)
Artist - Track (Official Music Video)
1998 Artist - Track
(1998) Artist - Track
...
This small package attempts to polish the given title and return it in the following form:
Artist - Title
npm install youtube-track-title-extractor
import getTitle from "youtube-track-title-extractor"
const title = getTitle(document.title)
Copyright © 2018, Angelos Karagkiozidis. Released under the MIT License.