tubeup icon indicating copy to clipboard operation
tubeup copied to clipboard

[Enhancement] Remove tubeup host IP address from info.json prior to IA upload

Open brandongalbraith opened this issue 2 years ago • 6 comments

Previous PR on the topic: https://github.com/bibanon/tubeup/pull/146

Had a bit of an epiphany on this topic while working on another problem; we shouldn't attempt to pattern match for an IP. We should wholesale parse the video URL in info.json and then remove the ip query param in the url key that contains the temporary video URL generated.

image

Stackoverflow link on the topic with hints on code for the solution for my notes: https://stackoverflow.com/questions/7734569/how-do-i-remove-a-query-string-from-url-using-python

brandongalbraith avatar Apr 03 '22 00:04 brandongalbraith

I like this solution, said a variant of it a while back, just drop that element. We don't need it even for diagnosing problems on our end. YT-DLP would need that though, but we don't.

vxbinaca avatar Jun 13 '22 05:06 vxbinaca

also I think YTDL guys did the filename thing to try to see if filesystem limits would trigger a failed rip. So like "()" in NTFS are illegal, as are raw Twitter video dumps because the extractor puts the content of the tweet into the filename which can break on both NTFS and EXT4 (this is because of filename length). You'd have to filter output to 'extractor-videoID'.

Anyway, we don't need that diagnostic information. I've always thought dropping those elements in the JSON and keeping the rest was good.

Thanks, Brandon.

vxbinaca avatar Jun 13 '22 05:06 vxbinaca

We've discussed this with Pukaden and theres no satisfactory way to sanitize IPs from the JSON without negativly affecting the video description or other false flags.

Yes there is a secondary copy of the description but I still don't like it's touching the JSON that messes with IAs bots that fix items.

I move to close as not feasibly fixable @brandongalbraith what do you think?

vxbinaca avatar Oct 27 '22 19:10 vxbinaca

@vxbinaca Let me spike this out next week and if I don't get any traction in short order, we'll close it out as WONTFIX.

brandongalbraith avatar Oct 27 '22 20:10 brandongalbraith

My apologies to all, I have not had the bandwidth to work on this. Please consider this comment a Request for Contributions; contributors can propose a fiat amount for the contribution and I will consider reasonable offers.

brandongalbraith avatar Jun 10 '23 01:06 brandongalbraith

we have lives it's fine

vxbinaca avatar Jun 13 '23 00:06 vxbinaca