# \[WS\] Discogs (pone mod)

**URL:** <https://community.mp3tag.de/t/ws-discogs-pone-mod/9226>\
**Category:** Broken Web Sources\
**Created:** [October 29, 2009, 3:18am UTC](https://community.mp3tag.de/t/ws-discogs-pone-mod/9226 "2009-10-29T03:18:24Z")\
**Posts on this page:** 1\
**Showing post:** 215

<div class="post-metadata">

**Author:** ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)\
**Post date:** [October 17, 2011, 12:58pm UTC](https://community.mp3tag.de/t/ws-discogs-pone-mod/9226/215 "2011-10-17T12:58:35Z")

</div>

the script offers only YYYY-MM-DD and DD.MM.YYYY as easy option.

But you can use the TEXT OPTION: FREE WEB SOURCES SCRIPT CODE... fields for that.

Set _DISCOGS\_DATE_ to "_no_" and add the following code to   
 _TEXT OPTION: FREE WEB SOURCES SCRIPT CODE FOR DJ SETS IN ONE FILE TRACKLIST SCRIPT  
TEXT OPTION: FREE WEB SOURCES SCRIPT CODE FOR MULTISONG-TRACKS TRACKLIST SCRIPT  
TEXT OPTION: FREE WEB SOURCES SCRIPT CODE FOR STANDARD SCRIPTS_

```
outputto "date"
gotoline 3
findline "class=\"head\">Released:" 1 1
findline "&year=" 1 1
findinline "&year" 1 1
if "="
    joinuntil "</a>"
    unspace
    regexpreplace "<[^>]+>" ""
    replace "Jan" "-01-"
    replace "Feb" "-02-"
    replace "Mar" "-03-"
    replace "Apr" "-04-"
    replace "May" "-05-"
    replace "Jun" "-06-"
    replace "Jul" "-07-"
    replace "Aug" "-08-"
    replace "Sep" "-09-"
    replace "Oct" "-10-"
    replace "Nov" "-11-"
    replace "Dec" "-12-"
    regexpreplace "[^-0-9]" ""
    
    regexpreplace "(\d\d)-(\d\d)-(\d\d\d\d)" "$3-$2-$1"
    regexpreplace "-(\d\d)-(\d\d\d\d)" "$2-$1-00"
    regexpreplace "(\d\d\d\d)$" "$1-00-00"
    regexpreplace "(\d\d\d\d)-(\d\d)-(\d\d)" "$2$3"
    sayrest
endif

```

This gives you MMDD as date, with 00 for missing day or month.

Discogs Master Release pages don't offer a release date, the have only year.  
So you can only add

```
outputto "date"
say "0000"

```

to _TEXT OPTION: FREE WEB SOURCES SCRIPT CODE FOR MASTER SCRIPTS_ if you want that.

---

_[View the full topic](https://community.mp3tag.de/t/ws-discogs-pone-mod/9226)._
