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

Start integrating playlist support #13

Merged
merged 6 commits into from
Feb 5, 2024

Conversation

kieraneglin
Copy link
Owner

What's new?

  • Adds support for adding a playlist as a source, alongside a new collection_type field to track if a collection is a channel or a playlist
  • Adds optional friendly_name field to sources since playlists with duplicate names are a PITA
  • Adds some dev helpers in .iex.exs file

What's changed?

  • Removed VideoCollection struct as it wasn't actually benefiting me. There's only one module that needed to fulfill that contract and I can just like, you know, test that the data is in the shape I expect. It wasn't a bad thing, but it was needless so it gets culled
  • Updated VideoCollection's get_source_details to pull in playlist IDs and Titles
  • Updated changeset-related methods in MediaSource to pull in the correct collection_id and collection_name attributes based on the collection_type
  • Moved logic to enqueue_pending_media_downloads from indexing worker to SourceTasks module for ease-of-use

What's fixed?

N/A

Any other comments?

N/A

@kieraneglin kieraneglin merged commit ca01f17 into master Feb 5, 2024
2 checks passed
@kieraneglin kieraneglin deleted the ke/start-integrating-playlists branch February 5, 2024 19:38
kieraneglin added a commit that referenced this pull request Mar 29, 2024
* [WIP] updated the output of VideoCollection to include playlists

* Updated source's name to collection_name; supported playlist ID/name fetching

* Hooked up collection_type to form; refactored enqueue_pending_media_downloads

* Added friendly_name to form

* Added media profile link to source view

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

Successfully merging this pull request may close these issues.

1 participant