Filename rewrite

Ng Guoyou edited this page Jan 28, 2018 · 9 revisions

Twitter :large images

// Remove :large from Twitter images
filename: (.*)(:|_)large
sourceurl: pbs.twimg.com
capture: filename
into: :$1:

Add ISO date to filenames

// Add ISO date to filenames
filename: .*
into: :isodate:_:filename:

Add jpg and mp4 extensions to images and videos without extensions in filename

// Matches images with no dot extension in filename
filename: ^[^\.]+[^\.]{0,5}$
mediatype: image
into: :filename:.jpg

// Matches videos with no dot extension in filename
filename: ^[^\.]+[^\.]{0,5}$
mediatype: video
into: :filename:.mp4

Add html extension to all page saves

// Add .html extension to pages
context: page
into: :filename:.html
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.