Skip to content

Fix download filename problems#2310

Merged
PrestonN merged 2 commits intoFreeTubeApp:v0.17.0-RCfrom
hockerschwan:dl-name-replace
Jun 21, 2022
Merged

Fix download filename problems#2310
PrestonN merged 2 commits intoFreeTubeApp:v0.17.0-RCfrom
hockerschwan:dl-name-replace

Conversation

@hockerschwan
Copy link
Contributor

@hockerschwan hockerschwan commented Jun 13, 2022

Pull Request Type

  • Bugfix

Related issue
None
addressed here

Description

  1. Replace forbidden chars
  2. EISDIR when downloadFolderPath is not empty

Screenshots (if appropriate)
z21
z22

Testing (for code that is not small enough to be easily understandable)

  1. Tested with these videos. could not find < and >
  • xcRxwi0x5ig Prehistoric Planet — Uncovered: Did Velociraptor Have Feathers? | Apple TV+
  • e5NLW_c8i7g *MUSIKVIDEOS Som BEVIS* RAPPARE & GÄNGMEDLEMMAR DÖMDA TILL FÄNGELSE
  • pwAMJG1BMB0 Blaze & Monster Machines "Let's Blaze!" Compilation!
  • Kx_eAKYnn-g How to find backward slash (\) or forward slash (/) or € on keyboard
  1. set download folder and download some videos

Desktop (please complete the following information):

  • OS: Windows10 21H1
  • FreeTube version: ae654a1

Additional context
What characters are forbidden in Windows and Linux directory names?
What characters are forbidden in OS X filenames?

@PrestonN PrestonN enabled auto-merge (squash) June 13, 2022 01:49
@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jun 13, 2022
auto-merge was automatically disabled June 13, 2022 23:12

Head branch was pushed to by a user without write access

@PrestonN PrestonN enabled auto-merge (squash) June 13, 2022 23:12
auto-merge was automatically disabled June 13, 2022 23:16

Base branch changed by a user without write access

@hockerschwan hockerschwan changed the base branch from development to v0.17.0-RC June 13, 2022 23:16
@PrestonN PrestonN enabled auto-merge (squash) June 13, 2022 23:17
@efb4f5ff-1298-471a-8973-3d47447115dc
Copy link
Member

efb4f5ff-1298-471a-8973-3d47447115dc commented Jun 15, 2022

Just to be sure. Ur only addressing nr 2 in this pr right?
#2309 (comment)

@hockerschwan
Copy link
Contributor Author

No2 ( invalid characters dont get replaced...) and No4 ("55).mp4") will be solved by 1.Replace forbidden chars
No3 (download fail) will be solved by 2.EISDIR when downloadFolderPath is not empty

I should have written more detailed descriptions.

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: changes requested PR: waiting for review For PRs that are complete, tested, and ready for review and removed PR: waiting for review For PRs that are complete, tested, and ready for review PR: changes requested labels Jun 19, 2022
@PrestonN PrestonN merged commit 2be06bf into FreeTubeApp:v0.17.0-RC Jun 21, 2022
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jun 21, 2022
@hockerschwan hockerschwan deleted the dl-name-replace branch June 21, 2022 10:27
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

Successfully merging this pull request may close these issues.

5 participants