Skip to content

Commit

Permalink
Allow 2-Digit TIDAL Artist and Album IDs and Bump Dependence Versions (
Browse files Browse the repository at this point in the history
…#185)

* Bump docker/login-action from 3.1.0 to 3.2.0 (#178)

Bumps [docker/login-action](https://github.com/docker/login-action) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@e92390c...0d4c9c5)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add artifact uploading and YAML linting to GitHub Actions Workflows

* Bump docker/build-push-action from 5 to 6 (#183)

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Dependabot monitoring PyPi dependencies(deps): Bump m3u8 (#182)

Bumps [m3u8](https://github.com/globocom/m3u8) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/globocom/m3u8/releases)
- [Commits](globocom/m3u8@5.0.0...5.1.0)

---
updated-dependencies:
- dependency-name: m3u8
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Allow TIDAL Artists to Parse 3-Digit IDs

Just run across John Williams, of Star Wars composing fame, with the TIDAL artist ID of `160`. This should be valid, so this commit allows 3-digit to 9-digit artist IDs

* Update models.py

Valid artist IDs are as few as 2 digits!

* Similar to artists, there are albums with 2-digit IDs!

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
ebb-earl-co and dependabot[bot] committed Jul 20, 2024
1 parent 9bb2483 commit 33ced3d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies = [
"dataclass-wizard==0.22.3",
"ffmpeg-python==0.2.0",
"mutagen==1.47.0",
"m3u8==5.0.0",
"m3u8==5.1.0",
"platformdirs==4.2.2",
"pycryptodome==3.20.0",
"requests[socks]==2.32.3",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cachecontrol==0.14.0
dataclass-wizard==0.22.3
ffmpeg-python==0.2.0
mutagen==1.47.0
m3u8==5.0.0
m3u8==5.1.0
platformdirs==4.2.2
pycryptodome==3.20.0
requests[socks]==2.32.3
Expand Down
4 changes: 2 additions & 2 deletions tidal_wave/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ class TidalAlbum(TidalResource):
def __post_init__(self):
self.pattern: str = (
r"http(?:s)?://(?:listen\.|www\.)?tidal\.com/"
r"(?:browse/)?album/(\d{5,9})(?:.*?)?"
r"(?:browse/)?album/(\d{2,9})(?:.*?)?"
)
_id = self.match_url()

Expand All @@ -635,7 +635,7 @@ class TidalArtist(TidalResource):
def __post_init__(self):
self.pattern: str = (
r"http(?:s)?://(?:listen\.|www\.)?tidal\.com/"
r"(?:browse/)?artist/(\d{4,9})(?:.*?)?"
r"(?:browse/)?artist/(\d{2,9})(?:.*?)?"
)
_id = self.match_url()

Expand Down

0 comments on commit 33ced3d

Please sign in to comment.