IPB

Welcome Guest ( Log In | Register )

18 Pages V  « < 16 17 18  
Reply to this topicStart new topic
> [WS] iTunes, web sources script
ohrenkino
post May 9 2017, 18:22
Post #256


Member


Group: Full Members
Posts: 8524
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.82



OK.
Try an action of the type "Format value" for YEAR
Format string: $left(%year%,4)


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
gabotojojo
post May 9 2017, 19:18
Post #257


Member


Group: Full Members
Posts: 7
Joined: 2-May 17
Member No.: 23376
Mp3tag Version: v2.80



QUOTE (ohrenkino @ May 9 2017, 14:22) *
OK.
Try an action of the type "Format value" for YEAR
Format string: $left(%year%,4)

It works great! Thanks!
Go to the top of the page
 
+Quote Post
ms6676749
post Today, 02:10
Post #258


Member


Group: Full Members
Posts: 31
Joined: 17-March 16
Member No.: 21892
Mp3tag Version: 2.75



QUOTE (gabotojojo @ May 9 2017, 03:18) *
I was wondering if there's an easy way to modify the script to grab only the year. I don't like the whole release date, just the year. I'm just getting started, don't know much about editing src's.
Thanks!
This may or may not apply to you. Just a FYI for anyone else who simply wants the four-digit year. Use the following in place of the "# YEAR" section (modified from Stevehero's src):
CODE
# YEAR
    outputto "YEAR"
    regexpreplace "(\d{4}-\d{2}-\d{2})" "<<<$1>>>"
    sayregexp "(?<=\"releaseDate\":\"<<<).+?(?=-\d{2}-\d{2}>>>)" ", " "}"
Go to the top of the page
 
+Quote Post

18 Pages V  « < 16 17 18
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th May 2017 - 21:36