Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Empty m3u File #50

Open
onestix opened this issue May 2, 2022 · 1 comment
Open

Empty m3u File #50

onestix opened this issue May 2, 2022 · 1 comment

Comments

@onestix
Copy link

onestix commented May 2, 2022

Hi @XDGFX - thanks for your effort on this great project.

I have spent the last few hours attempting to backup a Spotify playlist to an m3u file saved on my server without any success. Backing up the playlists works fine, but all playlists are empty! I've been trying to debug this by looking into the logs but there are no indications of a problem. Have you come across this issue?

I am running this via Docker on a Synology NAS. My compose:

version: "3.7"
services:
  ultrasonics:
    image: xdgfx/ultrasonics:1.2.0
    container_name: ultrasonics
    restart: unless-stopped
    ports:
      - 5000:5000
    volumes:
      - /volume1/docker/ultrasonics/Configuration:/config
      - /volume1/docker/ultrasonics/Plugins:/plugins 
      - /volume1/docker/ultrasonics/Playlists:/playlists
    environment:
      - PUID=1030
      - PGID=100
      - TZ=Europe/Amsterdam
    network_mode: bridge

I have really tried everything from pulling different tags (latest vs 1.2.0), adding various environment entries, such as pythonencoding=utf-8 or other locale related envs.

Here are my logs:

2022-05-02 13:32:54,256 - plugins - INFO - Running applet: xyz (plugins.py:251)
2022-05-02 13:32:54,258 - plugins - DEBUG - Running plugin spotify v0.5 (plugins.py:158)
2022-05-02 13:32:54,260 - 🎧 spotify - INFO - Credentials will be cached in: /config/up_spotify/up_spotify.bz2 (up_spotify.py:93)
2022-05-02 13:32:54,261 - 🎧 spotify - DEBUG - Fetching your Spotify token (up_spotify.py:110)
2022-05-02 13:32:54,452 - 🎧 spotify - DEBUG - Token is valid. (up_spotify.py:136)
2022-05-02 13:32:54,453 - 🎧 spotify - DEBUG - Returning cached token (up_spotify.py:118)
2022-05-02 13:32:54,806 - 🎧 spotify - INFO - Found 56 playlist(s) on Spotify. (up_spotify.py:331)
2022-05-02 13:32:54,807 - 🎧 spotify - INFO - Building songs_dict for playlists... (up_spotify.py:566)

0it [00:00, ?it/s]2022-05-02 13:32:54,899 - 🎧 spotify - INFO - Converting tracks to ultrasonics format. (up_spotify.py:387)

Converting tracks in xyz:   0%|          | 0/2 [00:00<?, ?it/s]
Converting tracks in xyz: 100%|██████████| 2/2 [00:00<00:00, 15141.89it/s]

1it [00:00, 12.13it/s]
2022-05-02 13:32:54,901 - plugins - DEBUG - Running plugin local playlists v0.4 (plugins.py:158)
2022-05-02 13:32:54,903 - 🎧 local playlists - INFO - Found 0 playlist(s) in supplied directory. (up_local playlists.py:254)
2022-05-02 13:32:54,904 - 🎧 local playlists - INFO - Your backups are currently taking up 0.0MB of space (up_local playlists.py:201)
2022-05-02 13:32:54,905 - plugins - INFO - Applet xyz completed successfully in 0:00:00.648833 (plugins.py:296)
2022-05-02 13:32:54,919 - database - INFO - Applet lastrun updated (database.py:377)

The below is my configuration for above playlist:

image

And here the created file that is currently empty:

image

Also, the cat command returns nothing when attempting to read the file from within the container.

Interesting enough, when I attempt to write the Spotify output to a "custom" txt file, everything shows up fine. Even if selecting output "log", I can see the results of the playlists in debug. This leaves me with the thought that something is going wrong when writing the file.

Help!?

Thanks, onestix

@onestix
Copy link
Author

onestix commented May 11, 2022

Anyone?

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

No branches or pull requests

1 participant