I've read through most of this thread and the chocolateboy's github site but I can't find anything that describes the format/content/how-to of a 'groovy' script. Is there any documentation for these scripts and if so, where can I find it ?
Thanks
Twosheds wrote:Is there any documentation for these scripts and if so, where can I find it ?
// add &has_verified=1 to the YouTube page URI to bypass age verification
config {
profile ('YouTube') { // replace the built-in profile
// extract the resource's video_id from the URI of the standard YouTube page
pattern {
match uri: '^http://(?:\\w+\\.)?youtube\\.com/watch\\?v=(?<video_id>[^&]+)'
}
action {
let uri: '${uri}&has_verified=1' // append &has_verified=1
// extract the resource's sekrit identifier ($t) from the page pointed to by the new URI
scrape '&t=(?<t>[^&]+)'
// Now, with $video_id and $t defined, call the custom YouTube handler to resolve the URI.
// Note: the parentheses are required for a no-arg action
youtube()
}
}
}
../src/main/resources/pmsencoder.groovyTwosheds wrote:I'm getting the error(s) from PMSEncoder in debug.log that appears to relate to pmsencoder.groovy in the attached file.
$HOOK = "C:\\Apps\\SopCast\\SopCast.exe \"${$URI}\""
Twosheds wrote:Is this the expected behaviour ?
Return to General Help and Support
Users browsing this forum: Red and 24 guests