Giter Club home page Giter Club logo

Comments (13)

jojo2357 avatar jojo2357 commented on May 17, 2024 2

Im using js and there were some sync issues that was causing the program to kill itself too fast. basically it would go, start reading all the folders at once, get some mp3's, read them, but as soon as any of the folders were done, the program quit instead of waiting for the other folders.

from music-discord-rich-presence-library.

jojo2357 avatar jojo2357 commented on May 17, 2024

What the heck!? It gets all of my subdirectories so could you run it through cmd to get the console output because i have never seen this before.

from music-discord-rich-presence-library.

RoguedBear avatar RoguedBear commented on May 17, 2024

I had to pipe-in the input and pipe-out the console log to a file because the same line was being written by the next log (\r i think) and I couldn't get the full output from the command line.

Case 1 output:

case1.log :

Who is this (github username is good, just for naming your files for the library)
MP3 or DAT: Where are your pictures? (fully qualified dir pls)
All done from D:\UserFiles\Music\jj music 2 (0)
Copying image (0) images/Faded.jpg
Copying image (1) images/Shadows.jpg

Case 1 input:

RoguedBear
MP3
D:\UserFiles\Music\jj music

Case 2 output:

case2.log :

Who is this (github username is good, just for naming your files for the library)
MP3 or DAT: Where are your pictures? (fully qualified dir pls)
All done from D:\UserFiles\Music\jj music\Monstercat 13 (0)
Copying image (0) images/Chasing Clouds.jpg
Copying image (1) images/Destroy Me.jpg
Copying image (2) images/Silhouette (Feed Me Remix).jpg
Copying image (3) images/Level Days.jpg
Copying image (4) images/Talk!.jpg
Copying image (5) images/Worst Part of Heaven.jpg
Copying image (6) images/Color.jpg
Copying image (7) images/Reset.jpg
Copying image (8) images/Gold  YES.jpg
Copying image (9) images/Upgrade.jpg
Copying image (10) images/Someone Else.jpg
Copying image (11) images/Where U Are.jpg
Copying image (12) images/Good 4 Me  Union.jpg

Case 2 input:

RoguedBear
MP3
D:\UserFiles\Music\jj music\Monstercat

Should I also post a tree of all the file contents in my music directory to make it easier for you to identify which files belong to a subdirectory?

from music-discord-rich-presence-library.

jojo2357 avatar jojo2357 commented on May 17, 2024

@RoguedBear i really dont know what is causing the issue but i have a hunch the newest commit may help. please try that and lmk

from music-discord-rich-presence-library.

RoguedBear avatar RoguedBear commented on May 17, 2024

I ran the new exe, and here's what happened: before making the archive/ folder as suggested in #2 the output was the same. After making the archive/ and moving groove0, musicbee0, spotify0 into that folder, There's an error in the output and the program halts (not quits)
but, I also see a folder images/ in the repo root which contains album art from all the sub-directories and the file all.dat mentioning all the albums in that folder

Log:

Who is this (github username is good, just for naming your files for the library)
RoguedBear
MP3 or DAT: MP3
Where are your pictures? (fully qualified dir pls)
D:\UserFiles\Music\jj music
All done from D:\UserFiles\Music\jj music 2 (0)
Error: EISDIR: illegal operation on a directory, read
    at Object.readSync (fs.js:564:3)
    at Object.fs.readSync (pkg/prelude/bootstrap.js:554:32)
    at tryReadSync (fs.js:349:20)
    at Object.readFileSync (fs.js:386:19)
    at Object.fs.readFileSync (pkg/prelude/bootstrap.js:683:36)
    at C:\snapshot\itunes-artwork-finder\musicdl.js
    at Array.forEach (<anonymous>)
    at setupExport (C:\snapshot\itunes-artwork-finder\musicdl.js)
    at C:\snapshot\itunes-artwork-finder\musicdl.js {
  errno: -4068,
  syscall: 'read',
  code: 'EISDIR'
}

from music-discord-rich-presence-library.

jojo2357 avatar jojo2357 commented on May 17, 2024

oh i mustve misspoken. the archive folder only holds the generated dat files, not the entire output folders sorry for not being clear there. If the subdirectory issue still persists i honest to goodness don't know where to start since my music folder has nested folders two deep that all work. if you happen to have node, try running the source code instead. I have never packaged js apps before and theres a chance that is the issue

from music-discord-rich-presence-library.

RoguedBear avatar RoguedBear commented on May 17, 2024

I ran musicdl.js from node after installing jsmediatags.
The output and result remains the same.

If the subdirectory issue still persists i honest to goodness don't know where to start since my music folder has nested folders two deep that all work.

I would like to point again that, when that error i mentioned came earlier and the program was paused, there was this images/ directory which had all the images from the subdirectories as intended and all.dat containing their respective album names..
so that means the script is extracting the image files correctly from all the subdirectories, but somewhere after that this weird thing happens

from music-discord-rich-presence-library.

jojo2357 avatar jojo2357 commented on May 17, 2024

Oh i missed that part. Thanks for reasserting that. Ill take another look but its hard to solve an issue I can't replicate.

from music-discord-rich-presence-library.

RoguedBear avatar RoguedBear commented on May 17, 2024

I can post some of my music library (some songs from a folder) to a google drive link and post it here

from music-discord-rich-presence-library.

jojo2357 avatar jojo2357 commented on May 17, 2024

That would be ideal since it probably isnt a machine issue.

from music-discord-rich-presence-library.

RoguedBear avatar RoguedBear commented on May 17, 2024

https://drive.google.com/drive/folders/15hqzhhhAvuK4Blukh2aOZfdutBQu0eE9?usp=sharing
here you go!

from music-discord-rich-presence-library.

jojo2357 avatar jojo2357 commented on May 17, 2024
RougedBear
MP3 or DAT: mp3
Where are your pictures? (fully qualified dir pls)
C:\Users\Public\Music
All done from undefined 15 (0)
Reading archive...
Starting export...
Begin export level 0
Wrapping up exportsimages/Native.jpg
All finnished

image

id=
Faded==0
End of Time==1
Play==2
Shadows==3
Origins==4
It Ain't Me==5
Slow Grenade==6
I met you when I was 18. (the playlist)==7
~how i'm feeling~==8
Don't Wanna Know==9
Chasing Clouds==10
Silhouette (Feed Me Remix)==11
Where U Are==12
Good 4 Me / Union==13
Native==14

Do I win? Ill push it so u can test it

from music-discord-rich-presence-library.

RoguedBear avatar RoguedBear commented on May 17, 2024

Wohooooo!!! Yes it does work 🎉🎉

Thank you for actively working on this issue! 🙇

(PS: what went wrong tho? 👀 )

from music-discord-rich-presence-library.

Related Issues (10)

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.