Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LazR

Pages: 12
1
Plugins / Re: Beenius - Genius for MusicBee
« on: July 12, 2022, 02:13:08 AM »
I personally do not see MusixMatch as a huge need. I am an editor on Genius and believe that their platform is much more through and advanced compared to MM; most of the time MM is just Genius copied while removing the [Chorus] tags.

Either way, thank you for the support and creation of the plugin, works amazing! Nice to have a dedicated backup in case LyricReloaded's way ever gets tanked by Genius

2
General Discussions / Re: LyricsReloaded discussion
« on: July 01, 2022, 09:48:43 PM »
It's time for this or a new plugin to use APIs instead of page-scraping.

There's almost literally a ticking clock on this plugin using these sorta websites.

This won't last long, but it's at least a step forward: https://github.com/slonopot/Beenius

I appreciate you for this man, using it as a backup if Reloaded goes down and no issues so far. I always wanted to write the same project but I only know R

3
Plugins / Re: LyricsReloaded (Updated)
« on: July 01, 2022, 09:44:34 PM »
Fuck Genius for this, but they literally changed 6 letters where the lyrics start and now old provider script is broken. No clue why they did that.

Attached is my fixed version or you can just change
Code
class="Lyrics__Container-sc-1ynbvzw-6 jYfhrf">
to
Code
class="Lyrics__Container-sc-1ynbvzw-6 YYrds">
in the pattern subsection under config

Code
name: Genius (2022-7-1)

variables:
    artist:
        type: artist
        filters:
        - strip_diacritics
        - lowercase
        - [replace, "!!!", "chk-chik-chick"]
        - [regex, '(?<=\W|\s)+(feat.+|ft[\W\s]+|(f\.\s)).+', ""]
        - [regex, '\.+|,+|(\W+(?=$))|(^\W+)', ""]
        - [regex, "'", ""]
        - [regex, '(?<=[a-z0-9%])[^\sa-z0-9%]+(?=[a-z0-9%]+)', "-"]
        - [regex, '\s&(?=\s)', " and"]
        - [strip_nonascii, -]
    title:
        type: title
        filters: artist

config:
    url: "https://genius.com/{artist}-{title}-lyrics"
    pattern: ['<div data-lyrics-container="true" class="Lyrics__Container-sc-1ynbvzw-6 YYrds">(?<lyrics>.*)<div class="Lyrics__Footer-sc-', 's']

post-filters:
- br2nl
- strip_html
- utf8_encode
- entity_decode
- clean_spaces
- [regex, '\[',"\n["]
- [regex, '\n{2,}',"\n\n", 's']
- trim

(Mine includes the [Chorus] sections, and has the regex fix for '&')

4
Plugins / Re: LyricsReloaded (Updated)
« on: April 06, 2022, 11:20:10 PM »
Wouldn't using
Code
- [regex, '\s&(?=\s)', " and"]
be better than
Code
- [regex, '((?<=\s)([^a-z0-9\s-])(\s|\W)+)|((?<=\w)([^a-z0-9-])+(\s|\W)+)', " "]
for artist filters because Genius changes '&' to 'and' in URLs? Is there something else that the current longer regex also does that I can't figure out?

5
Plugins / Re: LyricsReloaded (Updated)
« on: March 21, 2022, 05:29:28 AM »
This is more of a note to myself.
In case anyone prefers to keep those section headers (stuff like [Verse 1:], [Chorus:]) from Genius, but also hates that sometimes there's no blank line between the sections to properly set them apart, here's what my post-filters look like:
Code
post-filters:
- br2nl
- strip_html
- utf8_encode
- entity_decode
- clean_spaces
- [regex, '\[',"\n["]
- [regex, '\n{2,}',"\n\n", 's']
- trim
I don't know much about regex, but this is working for me so far.

Thank you for that, for some reason I could not figure that one out!

6
Plugins / Re: LyricsReloaded (Updated)
« on: January 27, 2022, 04:49:29 AM »
Small change for Genius. With the old '(2021-11-30)' version it just started adding -- 'xxxx Lyrics' to the top so changed the div class where lyrics should start.

If anyone knows how to regex fix there not being a space where ads would appear that would be great.

Code
name: Genius (2022)

variables:
    artist:
        type: artist
        filters:
        - strip_diacritics
        - lowercase
        - [replace, "!!!", "chk-chik-chick"]
        - [regex, '(?<=\W|\s)+(feat.+|ft[\W\s]+|(f\.\s)).+', ""]
        - [regex, '\.+|,+|(\W+(?=$))|(^\W+)', ""]
        - [regex, "'", ""]
        - [regex, '(?<=[a-z0-9%])[^\sa-z0-9%]+(?=[a-z0-9%]+)', "-"]
        - [regex, '((?<=\s)([^a-z0-9\s-])+(\s|\W)+)|((?<=\w)([^a-z0-9-])+(\s|\W)+)', " "]
        - [strip_nonascii, -]
    title:
        type: title
        filters: artist

config:
    url: "https://genius.com/{artist}-{title}-lyrics"
    pattern: ['<div data-lyrics-container="true" class="Lyrics__Container-sc-1ynbvzw-6 jYfhrf">(?<lyrics>.*)<div class="Lyrics__Footer-sc-', 's']

post-filters:
- br2nl
- strip_html
- utf8_encode
- entity_decode
- clean_spaces
- [regex, '\n{2,}',"\n\n", 's']
- trim

7
Plugins / Re: LyricsReloaded (Updated)
« on: November 06, 2021, 06:37:17 AM »
I also fixed Musixmatch, and added the minor tweaks to crisp's fix for Genius.
For the sake of easy copy-pasting, I'm putting them both here.

Genius:
Code
name: Genius

variables:
    artist:
        type: artist
        filters:
        - strip_diacritics
        - lowercase
        - [replace, "!!!", "chk-chik-chick"]
        - [replace, "&", "and"]
        - [regex, '(?<=\W|\s)+(feat.+|ft[\W\s]+|(f\.\s)).+', ""]
        - [regex, '\.+|,+|(\W+(?=$))|(^\W+)', ""]
        - [regex, "'", ""]
        - [regex, '(?<=[a-z0-9%])[^\sa-z0-9%]+(?=[a-z0-9%]+)', "-"]
        - [regex, '((?<=\s)([^a-z0-9\s-])+(\s|\W)+)|((?<=\w)([^a-z0-9-])+(\s|\W)+)', " "]
        - [strip_nonascii, -]
    title:
        type: title
        filters: artist

config:
    url: "https://genius.com/{artist}-{title}-lyrics"
    pattern: ['<div class="Lyrics__Container.*?">(?<lyrics>.*)<div class="Lyrics__Footer.*?">']

post-filters:
- br2nl
- strip_html
- utf8_encode
- entity_decode
- clean_spaces


Musixmatch:
Code
name: Musixmatch

variables:
    artist:
        type: artist
        filters:
        - strip_diacritics
        - lowercase
        - [regex, "'", ""]
        - [regex, "/", " "]
        - [regex, '\s&(?=\s)', " "]
        - [regex, '(?<=\W|\s)+(feat.+|ft[\W\s]+|(f\.\s)).+', ""]
        - [regex, '[^\sa-z0-9]\s*', ""]
        - [strip_nonascii, -]
    title:
        type: title
        filters:
        - strip_diacritics
        - lowercase
        - [regex, " '|' |/", " "]
        - [regex, "'", " "]
        - [regex, '\.+|,+|/+|(\W+(?=$))|(^\W+)', ""]
        - [regex, '\s&(?=\s)', " and"]
        - [strip_nonascii, -]

config:
    url: "http://www.musixmatch.com/lyrics/{artist}/{title}"
    pattern: ['<p class="mxm-lyrics__content.*?">(?<lyrics>.*?)<div [^>]*"lyrics-report".*?>', s]

post-filters:
- [regex, "<script.*?</script>", "", s]
- strip_html
- utf8_encode
- entity_decode
- clean_spaces

(I would think this would also fix Musixmatch-Asian, but I'm not a good tester for it. If anyone wants it, I can add that too.)

Oh my gosh, thank you so much Redearth. The only issue I am noticing is where ads are placed between lyric sections (ex. [chorus] [verse] etc), it is not adding an extra space. And it only happens on some songs not all.
Here is a screenshot detailing it -- https://imgur.com/a/PFBA6eJ

Is there a way to get that fixed?

8
Plugins / Re: LyricsReloaded (Updated)
« on: September 22, 2021, 06:54:33 AM »
foo_multisource isn't actually a plugin, it's a collection of parsers he wrote for the Lyric Show Panel 3 plugin, which he did not write. The plugin is much more complex and powerful than LyricsReloaded, but it still requires updates to the parsers whenever non-API lyric sites change their page structures. The author of foo_multisource even said his parsers aren't stable, and he has put in a ton of work into creating and maintaining them. They happen to work really well right now because he literally just released an update

Honestly I think it would be easier to use this plugin on Foobar, save all lyrics to correct tag and then run in Musicbee as normal. If I had any sense of C#/++ I would try to put something together that uses the Genius API to scrape but I wouldn't even know how to get started on that.

9
Plugins / Re: LyricsReloaded (Updated)
« on: August 15, 2021, 08:21:59 AM »
I was able to find a site that seems to just scrape lyrics from Genius or some user is just copy and pasting them straight over with the correct HTML formatting. Here is the code for it. Only problems I have noticed are that sometimes there are ads in-between the lyrics so it has a bunch of extra spaces and the googleads link -- couldn't regex it. Also there isn't always two space breaks before a new lyric section (ex [Chorus], [Verse], etc) so it doesn't look super clean. But a start, for some artists not included in other large sites.  


Code
name: "Genius Lyrics Ripoff"

variables:
    artist:
        type: artist
        filters:
        - strip_diacritics
        - lowercase
        - [replace, "!!!", "chk-chik-chick"]    # !!! (Chk Chk Chk) artist exception
        - [regex, '(?<=\W|\s)+(feat.+|ft[\W\s]+|(f\.\s)).+', ""]
                                                # ^ Strip F./ft/eat/uring + everything after
        - [regex, '\s&(?=\s)', " and"]          # Replace " &" with " and"
                                                    ## ^ Currently superfluous (for ARTIST) bc plugin preemptively replaces "&" with "and"
                                                        ### ^ But still necessary for <title> "&" replacement
        - [regex, '\.+|,+|(\W+(?=$))|(^\W+)', ""]   # Strip "." + "," + beginning/end of string non-word chars
        - [regex, "'", ""]                      # Separate expression bc of annoying way YAML escapes '
        - [regex, '(?<=[a-z0-9%])[^\sa-z0-9%]+(?=[a-z0-9%]+)', "-"]
                                                # ^ Replace medial non-alphanumeric char(s) with single "-" e.g., f**k > f-k
        - [regex, '((?<=\s)([^a-z0-9\s-])+(\s|\W)+)|((?<=\w)([^a-z0-9-])+(\s|\W)+)', " "]
                                                # ^ Clean up any remaining successive non-alphanumeric chars before strip_nonascii
                                                    ## ^ Long & stupid bc couldn't figure out YAML-friendly non-capturing "(?:...)"
                                                        ### ^ EZ version: [regex, '\W+(?:\W)(?<!$)', " "]
        - [strip_nonascii, -]
    title:
        type: title
        filters: artist

config:
    url: "http://genius-lyrics.com/{title}-lyrics-{artist}"
    pattern: ['<p style="text-align: center;">(?<lyrics>.+?)<h2 style="text-align: center;">', s]

post-filters:
- strip_html
- clean_spaces
- utf8_encode
- [regex, '<!-- 2020 POST 3 -->', ""]

- [regex, 'googletag.*\);', "\n"]

10
MusicBee Wishlist / Markdown Support for Lyrics
« on: May 28, 2020, 06:53:28 AM »
Would be amazing if the 'Lyrics' panel could support markdown. When pulling from Genius Lyrics if there are multiple artists on a certain part, the second/third/etc artist's lyrics go to italics/underline/bold/etc. This would be nice to actually see that on MusicBee.



Compared to what it is already


11
Questions / Assigning more than one multiple keys to one hotkey
« on: September 17, 2018, 03:28:06 AM »
Is it possible to assign two different hotkeys to certain actions. Eg, MediaNextKey and Numpad6 could both skip songs.

12
Questions / Artist Sorting with Random Parentheses
« on: July 03, 2018, 06:23:06 AM »
Mike Shinoda always sorts as "(Mike Shinoda)" ONLY in the artist list, not in album/tracks nor in the albums sort settings. He does not show up with parentheses on Last.FM either. How can I fix this?
MusicBee version - 3.2.6748


13
Plugins / Re: LyricsReloaded
« on: October 06, 2016, 02:08:11 AM »
If you know how to fix the 'googletag.cmd.push...' randomly showing up or the '<!--/sse-->' please respond back!

The solution is two pages back
http://getmusicbee.com/forum/index.php?topic=9994.msg117556#msg117556


Thank you! Sorry just added a space between the regex for googletag and post-filters end. Works Beautifully!

14
Plugins / Re: LyricsReloaded
« on: October 06, 2016, 12:51:12 AM »
The Genius .yml is working but adding the 'googletag.cmd.push.....' in the middle of lyrics. I'll just link the two .yml files I am using for Genius if you could help me fix that it would be amazing. It also shows '<!--/sse-->' in the beginning and end but that is fine not as annoying.



Genius .yml -- https://mega.nz/#!qJpGzZ4Y!HTJ-WPV4vsntft5H2zPuE0Jf2xHL1HkIxKtKA1L9XhE
2nd Genius .yml -- https://mega.nz/#!rEY2jIZB!WHTGlzA-8r-AH_-VV3nnfeJEBUzZXbSXpG8U9entgaE

If you know how to fix the 'googletag.cmd.push...' randomly showing up or the '<!--/sse-->' please respond back!

Thanks, Matthew / LazR

15
Bug Reports / Crashing on Startup + Track Titles Not Showing up in Playlist
« on: September 29, 2016, 12:52:13 AM »
Sometimes randomly on the new patched version (v3.0.6109) it will crash on start up multiple times. It seems that I cannot do anything for a couple of seconds when I start it just wait then play a song.
I am running an AMD A4-5300, 10gbs ram, GTX 750ti. This was not a problem on the patched version before this one.

Also; when going from the Playlist tab to Now Playing tab and then back to Playlist tab it puts a black bar where the titles should be ex. https://gyazo.com/75ca3cf3b53385a743295e6896023f4d

Pages: 12