Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

If the current solution with "apple-music-alac-atmos-downloader" only support the Windows x86_64 platform #7

Open
iamhongliang opened this issue Nov 4, 2024 · 2 comments

Comments

@iamhongliang
Copy link

iamhongliang commented Nov 4, 2024

Really appreciate to you giving us this great project with detailed instructions.

I have finished the installation and it's running very well now in my windows PC. But when I try to install it on my MacBook Pro I encounter the start-error on Android Studio, it shows the info indicating the arm64 does not support x86-64 Android. Then I create the arm64 version android emulator it won't work at the the following code:

func decryptSong(...){
...

	de := make([]byte, len(sp.data))
	_, err = io.ReadFull(conn, de)
	if err != nil {
		return err
	}

It throws a EOF error.

So I wondered whether the current solution only support the Windows x86_64 platform.

Thanks。

@zhaarey
Copy link
Owner

zhaarey commented Nov 4, 2024

yes only for x86_64

Really appreciate to you giving us this great project with detailed instructions.

I have finished the installation and it's running very well now in my windows PC. But when I try to install it on my MacBook Pro I encounter the start-error on Android Studio, it shows the info indicating the arm64 does not support x86-64 Android. Then I create the arm64 version android emulator it won't work at the the following code:

func decryptSong(...){ ...

	de := make([]byte, len(sp.data))
	_, err = io.ReadFull(conn, de)
	if err != nil {
		return err
	}

It throws a EOF error.

So I wondered whether the current solution only support the Windows x86_64 platform.

Thanks。

@iamhongliang
Copy link
Author

iamhongliang commented Nov 4, 2024

yes only for x86_64

Really appreciate to you giving us this great project with detailed instructions.
I have finished the installation and it's running very well now in my windows PC. But when I try to install it on my MacBook Pro I encounter the start-error on Android Studio, it shows the info indicating the arm64 does not support x86-64 Android. Then I create the arm64 version android emulator it won't work at the the following code:
func decryptSong(...){ ...

	de := make([]byte, len(sp.data))
	_, err = io.ReadFull(conn, de)
	if err != nil {
		return err
	}

It throws a EOF error.
So I wondered whether the current solution only support the Windows x86_64 platform.
Thanks。

Thanks for your reply.
By the way, I make a tiny modification on "main.go" to implement the function of downloading multiple CDs albums into separate folder:

func rip(...){
...
// 解析 disk 信息

        diskInfo := strings.Split(fmt.Sprintf("%d/%d", track.Attributes.DiscNumber, meta.Data[0].Relationships.Tracks.Data[trackTotal-1].Attributes.DiscNumber), "/")
        currentDisk, _ := strconv.Atoi(diskInfo[0])
        totalDisks, _ := strconv.Atoi(diskInfo[1])

        // 构建文件夹路径
        var folderPath string
        if totalDisks > 1 {
            folderPath = filepath.Join(sanAlbumFolder, fmt.Sprintf("CD %d", currentDisk))
            os.MkdirAll(folderPath, os.ModePerm)
        } else {
            folderPath = sanAlbumFolder
        }

        // 保存文件
        trackPath := filepath.Join(folderPath, filename)
        m4atrackPath := filepath.Join(folderPath, m4afilename)

It works well for now, hope this tiny feature would be useful to others.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants