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

newgrounds: metadata json strips newlines out of description #6533

Open
mgrandi opened this issue Nov 26, 2024 · 1 comment
Open

newgrounds: metadata json strips newlines out of description #6533

mgrandi opened this issue Nov 26, 2024 · 1 comment

Comments

@mgrandi
Copy link

mgrandi commented Nov 26, 2024

for the newgrounds module, when it writes the metadata JSON file, it seems to remove newlines which makes the resulting description (possibly other fields) be missing whitespace

image

the HTML from the page:

<div class="pod-body ql-body" id="author_comments" >
	<p>Pork is just so amazing. Why don't you marry it?</p><p><br></p><p>Tune on iTunes and Amazon.</p></div>
PS C:\Users\mgrandi> gallery-dl --version
1.25.5
PS C:\Users\mgrandi> gallery-dl --write-metadata https://www.newgrounds.com/portal/view/414664
C:\Users\mgrandi\gallery-dl\newgrounds\theweebl\newgrounds_414664_Pork.swf
PS C:\Users\mgrandi> get-content C:\Users\mgrandi\gallery-dl\newgrounds\theweebl\newgrounds_414664_Pork.swf.json
{
    "title": "Pork",
    "url": "https://uploads.ungrounded.net/414000/414664_porkng.swf",
    "date": "2007-12-12 14:18:13",
    "type": "",
    "description": "Pork. It's the meat of kings",
    "rating": "t",
    "index": 414664,
    "comment": "Pork is just so amazing. Why don't you marry it?Tune on iTunes and Amazon.",
    "favorites": 2594,
    "score": 4.71,
    "tags": [
        "food",
        "loop",
        "pork",
        "weebl"
    ],
    "artist": [
        "theweebl"
    ],
    "user": "theweebl",
    "post_url": "https://www.newgrounds.com/portal/view/414664",
    "category": "newgrounds",
    "subcategory": "media",
    "bkey": "",
    "ckey": "",
    "filename": "414664_porkng",
    "extension": "swf"
}

gallery-dl version 1.25.5

@mikf
Copy link
Owner

mikf commented Nov 26, 2024

This will be fixed in the next release (v1.28.0): b069783

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

No branches or pull requests

2 participants