Private
Public Access
fix(twitter_threads): strip trailing slashes from --media-dir and --output
Path objects with trailing separators (e.g. './media/') intermittently
failed to glob on Windows after download_media.py had just finished
writing the directory. Normalize via rstrip('/\\\\') before Path()
re-wrapping so the CLI is forgiving regardless of OS path quirks.
Repro: gallery-dl ran + immediate render with trailing slash on the
just-created media/ dir -> glob returned nothing -> markdown emitted
no ![Media N] lines. Removing the trailing slash fixed it; this makes
both work.
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
;;; !!! This configuration is handled by HelloImGui and stores several Ini Files, separated by markers like this:
|
||||
;;;<<<INI_NAME>>>;;;
|
||||
|
||||
;;;<<<ImGui_655921752_Default>>>;;;
|
||||
[Window][Project Settings]
|
||||
Pos=0,28
|
||||
Size=1666,1172
|
||||
Collapsed=0
|
||||
DockId=0xAFC85805,3
|
||||
|
||||
[Window][Files & Media]
|
||||
Pos=0,28
|
||||
Size=1666,1172
|
||||
Collapsed=0
|
||||
DockId=0xAFC85805,4
|
||||
|
||||
[Window][AI Settings]
|
||||
Pos=0,28
|
||||
Size=1666,1172
|
||||
Collapsed=0
|
||||
DockId=0xAFC85805,5
|
||||
|
||||
[Window][Operations Hub]
|
||||
Pos=0,28
|
||||
Size=1666,1172
|
||||
Collapsed=0
|
||||
DockId=0xAFC85805,7
|
||||
|
||||
[Window][Theme]
|
||||
Pos=0,28
|
||||
Size=1666,1172
|
||||
Collapsed=0
|
||||
DockId=0xAFC85805,6
|
||||
|
||||
[Window][Discussion Hub]
|
||||
Pos=0,28
|
||||
Size=1666,1172
|
||||
Collapsed=0
|
||||
DockId=0xAFC85805,0
|
||||
|
||||
[Window][Log Management]
|
||||
Pos=0,28
|
||||
Size=1666,1172
|
||||
Collapsed=0
|
||||
DockId=0xAFC85805,1
|
||||
|
||||
[Window][Diagnostics]
|
||||
Pos=0,28
|
||||
Size=1666,1172
|
||||
Collapsed=0
|
||||
DockId=0xAFC85805,2
|
||||
|
||||
[Window][Debug##Default]
|
||||
Pos=60,60
|
||||
Size=400,400
|
||||
Collapsed=0
|
||||
|
||||
[Window][Response]
|
||||
Pos=346,635
|
||||
Size=794,758
|
||||
Collapsed=0
|
||||
|
||||
[Window][Project Stale]
|
||||
Pos=10,50
|
||||
Size=169,184
|
||||
Collapsed=0
|
||||
|
||||
[Table][0x7804123E,3]
|
||||
RefScale=20
|
||||
Column 0 Width=60
|
||||
Column 1 Weight=1.0000
|
||||
Column 2 Width=70
|
||||
|
||||
[Table][0x56EAD150,3]
|
||||
RefScale=20
|
||||
Column 0 Width=60
|
||||
Column 1 Weight=1.0000
|
||||
Column 2 Width=70
|
||||
|
||||
[Table][0x87F76FD6,3]
|
||||
RefScale=20
|
||||
Column 0 Width=60
|
||||
Column 1 Weight=1.0000
|
||||
Column 2 Width=70
|
||||
|
||||
[Table][0x3459F0E7,3]
|
||||
RefScale=20
|
||||
Column 0 Width=60
|
||||
Column 1 Weight=1.0000
|
||||
Column 2 Width=70
|
||||
|
||||
[Table][0x51981450,3]
|
||||
RefScale=20
|
||||
Column 0 Width=60
|
||||
Column 1 Weight=1.0000
|
||||
Column 2 Width=70
|
||||
|
||||
[Table][0x48E1D781,3]
|
||||
RefScale=20
|
||||
Column 0 Width=60
|
||||
Column 1 Weight=1.0000
|
||||
Column 2 Width=70
|
||||
|
||||
[Table][0xFC15AE63,7]
|
||||
Column 0 Weight=1.0000
|
||||
Column 1 Weight=1.0000
|
||||
Column 2 Weight=1.0000
|
||||
Column 3 Weight=1.0000
|
||||
Column 4 Weight=1.0000
|
||||
Column 5 Weight=1.0000
|
||||
Column 6 Weight=1.0000
|
||||
|
||||
[Table][0xA02D8C87,3]
|
||||
RefScale=20
|
||||
Column 0 Width=150
|
||||
Column 1 Width=100
|
||||
Column 2 Weight=1.0000
|
||||
|
||||
[Docking][Data]
|
||||
DockSpace ID=0xAFC85805 Window=0x079D3A04 Pos=0,28 Size=1666,1172 CentralNode=1 Selected=0x3F1379AF
|
||||
|
||||
;;;<<<Layout_655921752_Default>>>;;;
|
||||
;;;<<<HelloImGui_Misc>>>;;;
|
||||
[Layout]
|
||||
Name=Default
|
||||
[StatusBar]
|
||||
Show=false
|
||||
ShowFps=true
|
||||
[Theme]
|
||||
Name=ImGuiColorsDark
|
||||
;;;<<<SplitIds>>>;;;
|
||||
{"gImGuiSplitIDs":{"MainDockSpace":2949142533}}
|
||||
Reference in New Issue
Block a user