Giter Site home page Giter Site logo

rsack's Introduction

rsack's People

Contributors

slyyxp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rsack's Issues

Circumvent `song/j_ArtistAlbumList.json` response limit.

song/j_ArtistAlbumList.json responds with a maximum of 25 albums.
This needs to be increased for artist batching to have any real value.

I am not aware how to circumvent this at the time of writing.
One solution to obtaining the necessary album id's would be to scrape them although not ideal.

    def get_artist(self, id):
        """Returns artist information

        Args:
            id (int): Artist UID

        Returns:
            [dict]: API Response containing artist information
        """
        data = {
            "uxtk": self.usr_token,
            "sign": "Y",
            "tct": "Android",
            "svc": "IV",
            "stk": self.stm_token,
            "dcd": self.dev_id,
            "xxnm": id,
            "unm": self.usr_num,
            "mts": "Y"
        }
        r = self.make_call("app", "song/j_ArtistAlbumList.json", data)
        if r['Result']['RetCode'] != "0":
            logger.critical("Failed to retrieve metadata")
        return r

Skips downloading songs with characters ?, :,

Hi, I noticed that the script skips downloading songs that contain ?, : in their filename.

For example, when downloading this album https://music.bugs.co.kr/album/4041263?wl_ref=list_ab_03_ar, it appears like this:

C:\Users\x>rsack -b -u https://music.bugs.co.kr/album/4041263?wl_ref=li
st_ab_03_ar
2022-04-04 12:37:15.233 | INFO | rsack.clients.bugs:auth:26 - Login Successf
ul
2022-04-04 12:37:16.104 | INFO | rsack.bugs:_album:53 - Album: ? ??? ??? ??
???? (???? ??? X ?? (JOY))
2022-04-04 12:37:16.111 | DEBUG | rsack.bugs:album:67 - Creating C:\Users\x
\download?? (JOY) - ? ??? ??? ?? ???
(???? ??? X ?? (JOY))
2022-04-04 12:37:17.345 | INFO | rsack.bugs:_download_cover:130 - Cover artw
ork downloaded.
2022-04-04 12:37:17.358 | INFO | rsack.bugs:_album:76 - Threads: 1
2022-04-04 12:37:17.444 | DEBUG | rsack.bugs:_download:87 - Processing: 61041
67
2022-04-04 12:37:18.733 | DEBUG | rsack.bugs:_download:87 - Processing: 61041
68

C:\Users\x>

Sorry for my English

how to download flac in genie?

I'm already using the flac subscription. but download is only 320kbps.
how to download flac? Is there another command?
And what does "thread" mean?

thank u sir.

Improve exist checks

Exist checks are present but are only made after a lot of requests go out for relevant album/track information, this slows down completion time a lot.

How to edit rsack_settings.ini

Thank you very much for sharing.
I made a mistake when I first inputed the password, how do I need to modify it, I can't find the path of Settings.ini

image

`FileNotFoundError` for `cover.jpg`

Traceback (most recent call last):
  File "C:\Users\Cheek\AppData\Local\Programs\Python\Python39\Scripts\rsack-script.py", line 33, in <module>
    sys.exit(load_entry_point('rsack==0.1.4', 'console_scripts', 'rsack')())
  File "C:\Users\Cheek\AppData\Local\Programs\Python\Python39\lib\site-packages\rsack-0.1.4-py3.9.egg\rsack\main.py", line 25, in main    
  File "C:\Users\Cheek\AppData\Local\Programs\Python\Python39\lib\site-packages\rsack-0.1.4-py3.9.egg\rsack\bugs.py", line 36, in __init__
  File "C:\Users\Cheek\AppData\Local\Programs\Python\Python39\lib\site-packages\rsack-0.1.4-py3.9.egg\rsack\bugs.py", line 69, in _album
  File "C:\Users\Cheek\AppData\Local\Programs\Python\Python39\lib\site-packages\rsack-0.1.4-py3.9.egg\rsack\bugs.py", line 124, in _download_cover
FileNotFoundError: [Errno 2] No such file or directory: 'Z:\\Music\\Korean\\TREASURE(트레저)\\TREASURE(트레저) - THE SECOND STEP _ CHAPTER ONE \\cover.jpg'

FLAC false positive.

API returns that there is FLAC present, yet it redirects to MP3.
This could be because of the streaming plan, it is unknown why.

Refactor bugs client

Refactor bugs client.
Constructing posts should more closely match the genie client for consistency.

Labels cause artist batching to fail

Labels are actually not returned in the API response when requesting artist information.
They are present in the response as a NoneType, this means an additional request has to be done. Although slower it's necessary for all the information we need for tagging.

Korean README.md

Since this project aims at Korean webstores it would be nice to have a README translation for Korean speakers.

My Korean is very basic so I cannot provide this at the quality I would like.

If anyone can provide this feel free to get in contact on this issue.

Exist checks

Skip existing tracks, useful when batching or when a download fails.

ConnectionError

Remote end closing connection without response.
Intermittent.

Melon is not working

Hi, I have subscription which is only available for streaming. But I can't download song using your melon_client.py
What I found is

Here is code!

Detailed Artist Information

Discussed in #49

Originally posted by kihyyo August 16, 2022
Currently gives only information of album.

In web I can see more detailed information of artist and also in app like who she or he is.

I need some help the way getting more detailed information of artist through https://app.genie.co.kr/???/j_ArtistInfo.json I guess.

And more detailed information of album If possible, Thanks

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.