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

Station name update for direct url #91

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

marvoh
Copy link
Contributor

@marvoh marvoh commented Oct 26, 2023

When you add your radio station from URL, it is assigned the name "N/A". This becomes problematic when you want to record the from the station because the default naming structure is FILE_PATH/STATION_NAME_FILE_NAME.EXT.

In Linux you will end up getting directory "N/A" does not exist.

This update attempts to get the station name from header 'ICY-Name' from the URL provided

Updated custom URL name from 'N/A' to 'Custom Station'

@github-actions
Copy link

Hi, @marvoh,
Thanks for opening this PR 💙 .
Contributors 🧑‍🤝‍🧑 like you make the open source community 🌍 such an amazing place to learn 📖 , inspire 👼, and create 🎨 .
We will review it 👀 and get back to you as soon as possible 👍 . Just make sure you have followed the contribution guidelines.

By that time enjoy this meme 👇 , hope you like it 😄

meme

Use this action on your projects. Use jokes on issues instead.

…A". This becomes problematic when you want to record the from the station because the default naming structure is STATION_NAME_FILE_NAME.

In linux you will end up getting directory "N/A" does not exist.

This update attempts to get the station name from header 'ICY-Name' from the URL provided

Updated custom url name from 'N/A' to 'Custom Station'

Changed requests library from 'urllib.request' to 'requests' to get rid of 'Audit url open for permitted schemes' warning
@deep5050
Copy link
Owner

deep5050 commented Oct 26, 2023

Thank you so much for the bug and solution. I totally overlooked it! I'm going to test it.

@deep5050
Copy link
Owner

please run make before submitting the PR again

@deep5050 deep5050 changed the base branch from main to 2.8.1 October 26, 2023 17:53
@deep5050 deep5050 merged commit af9675b into deep5050:2.8.1 Oct 26, 2023
1 check passed
Repository owner deleted a comment from allcontributors bot Oct 26, 2023
@deep5050
Copy link
Owner

@all-contributors please add @marvoh for code,bug

@allcontributors
Copy link
Contributor

@deep5050

I've put up a pull request to add @marvoh! 🎉

deep5050 added a commit that referenced this pull request Oct 30, 2023
* feat: 💄 less log messages

* feat:

* feat: ✨ add: sort result page

Sort result page with several parameters like popularity, clickcount, random etc.

* feat: ✨ add: new column for sorted results

* fix: 🐛 EOF error fixed #80

fixed #80 EOF error while pressed CTRL + D

* Update commit author

* refactor: 🎨 move argument parser logic to a new file

* refactor: 🎨 some unnecessary functions removed

* feat: ✨ select and remove stations from favorite list

fixes #88

* When you add your radio station from URL, it is assigned the name "N/A". This becomes problematic when you want to record the from the station because the default naming structure is STATION_NAME_FILE_NAME. (#91)

In linux you will end up getting directory "N/A" does not exist.

This update attempts to get the station name from header 'ICY-Name' from the URL provided

Updated custom url name from 'N/A' to 'Custom Station'

Changed requests library from 'urllib.request' to 'requests' to get rid of 'Audit url open for permitted schemes' warning

Co-authored-by: Marvin Ochieng <[email protected]>

* docs: add marvoh as a contributor for code, and bug (#94)

* Update README.md

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: Dipankar Pal <[email protected]>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

* feat: ✨ detect station name while playing with direct url

fixes #92 allow record a station played with direct url

* update README

* fix: 🚑 timeout error introduced on fetching station name

* feat: ✨ improve logic for station name detection

using ffprobe instead of requests to fetch station name

* feat: ✨ dynamic width result page

result page will now adjust its width accroding to the actual window size.

* feat: ✨ play random stations from result page

* feat: ✨ see station info from runtime command

* updated

* Update README.md

* docs: 📝 contribution guide added

* feat: ✨ current track information from runtime command

* 2.8.1

* README update

Signed-off-by: Dipankar Pal <[email protected]>

* 2.9.0

Signed-off-by: Dipankar Pal <[email protected]>

---------

Signed-off-by: Dipankar Pal <[email protected]>
Co-authored-by: John Doe <[email protected]>
Co-authored-by: marvoh <[email protected]>
Co-authored-by: Marvin Ochieng <[email protected]>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants