Any way to differentiate a link being grabbed from a reddit comment #4102
sinclairkosh
started this conversation in
General
Replies: 1 comment
-
You could test if
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I have a line
"'_reddit' in locals()": "{_reddit[subreddit]}_{_reddit[author]}_{_reddit[id]}_{category}_{_reddit[date]:%Y-%m-%d}{album[id]:?_/_/}{_reddit[title][:100]:R /_/R.//R’//R!//R?//R://R,//R://R'//}{num:?_/_/>03}{filename}.{extension}",
and I have comments: set to greater than zero
that line errors whenever an imgur link pops up in the comments as it's complaining about the date
[imgur][error] FilenameFormatError: Applying filename format string failed (ValueError: Invalid format specifier '%Y-%m-%d' for object of type 'str')
I'm trying to add another clause like the above but can't find the magic keyword combo to basically tell it this is a comment just use the imgur date.
In other semi-related news. is there a way to dump the locals() as a debugging tool. I tried -j but the json didn't seem directly related/linked to the keywords etc.
Beta Was this translation helpful? Give feedback.
All reactions