User:Martin/Apple Music
From MixesDB
Jump to navigationJump to search
Bug found
#rmatch
breaks (returns neither true or false) when the pattern has special characters i=
or ?i
{{#rmatch:…1437245067?i=1437245076|i=|yes|no}}
:{{#rmatch:…1437245067?i=1437245076|?i|yes|no}}
:
Others it does:
{{#rmatch:…1437245067?i=1437245076|1437|yes|no}}
: yes
Expects regex! And since we're in template syntax, =
must be escaped via template inclusion {{=}}
{{#rmatch:…1437245067?i=1437245076|i{{=}}|yes|no}}
: yes{{#rmatch:…1437245067?i=1437245076|foo{{=}}|yes|no}}
: no{{#rmatch:…1437245067?i=1437245076|\?i|yes|no}}
: yes
URL cases:
https://music.apple.com/de/album/boiler-room-kerri-chandler-b2b-jeremy-underground-in/1521587401 < Album https://music.apple.com/de/album/take-me-back/1503625476?i=1503625484 < Song https://music.apple.com/de/playlist/headspace/pl.49fa4124be174a3da9e5ec43b0d07e65 < Playlist
Template processing
- TestUrl / 1: music.apple.com/de/album/boiler-room-kerri…
- Domain: music.apple.com
- Domain switch: music.apple.com
- AMcont: 1
- id: album/boiler-room-kerri-chandler-b2b-jeremy-underground-in/1521587401
- match "i=":
- AMcont = 1: yes
- #rmatch i=: No song
Embeds
Album
{{Player|https://music.apple.com/de/album/boiler-room-kerri-chandler-b2b-jeremy-underground-in/1521587401}}
Song
{{Player|1=https://music.apple.com/de/album/take-me-back/1503625476?i=1503625484}}
Playlist
{{Player|https://music.apple.com/de/playlist/headspace/pl.49fa4124be174a3da9e5ec43b0d07e65}}