Giter VIP home page Giter VIP logo

core's Introduction

Mirror.FM

Sync discogs labels or music youtube channels with Spotify playlists


This repository contains the code for the main background processes.

Features

  • Automatically builds Spotify playlists from any youtube music channel/discogs label,
  • Constantly check for new uploads/releases,
  • Find previously unreleased songs that were released on Spotify today,
  • Provide backups for deleted, hacked or terminated YouTube channels.

Lambdas

core's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

core's Issues

[from-youtube] Provided list of item keys contains duplicates

In https://github.com/mirrorfm/mirrorfm/tree/master/functions/from-github

[ERROR] ClientError: An error occurred (ValidationException) when calling the BatchWriteItem operation: Provided list of item keys contains duplicates
Traceback (most recent call last):
  File "/var/task/main.py", line 241, in handle
    'mirrorfm_yt_tracks': batch
  File "/var/runtime/boto3/resources/factory.py", line 520, in do_action
    response = action(self, *args, **kwargs)
  File "/var/runtime/boto3/resources/action.py", line 83, in __call__
    response = getattr(parent.meta.client, operation_name)(*args, **params)
  File "/var/runtime/botocore/client.py", line 316, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/var/runtime/botocore/client.py", line 635, in _make_api_call
    raise error_class(parsed_response, operation_name)

Sync thumbnails

  • Look for new thumbnails on youtube channels
  • Store new one, potentially keep old ones
  • Don't override old thumbnail if channel is deleted
  • Update spotify playlist with new thumbnail

Don't include non-tracks in totals

YT titles that don't look like a track (i.e. Mix #123 2019 instead of Artist - Track) should not be included intotal_tracks and total_found

Weird results

Playlists all picking up the same track and not updating

Looks like there's quite a few playlists that are picking up the track "Innisai Paadivarum - Language: Tamil; Film: Thullatha Manamum Thullum; Film Artist 1: Vijay; Film Artist 2: Simran" and have stopped updating with new tracks.

Some examples:
https://open.spotify.com/playlist/3nEA2Y9Q5tYqXmSQ5pk3es?si=f4f04fa2eb464385
https://open.spotify.com/playlist/1LUD1EklEy8lnDrBwJIxca?si=9adb5669f5ca4bc2
https://open.spotify.com/playlist/6JHVqj1hMAu5zuBhcpifil?si=0e27b963e00b46cc

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.