I would like to do the same for tv shows.
My files are currently formatted as
CODE
<a href="showname s01e01.mp4">Showname s01e01</a>
The text I need to send to the input field is
Showname&Season=01&Episode=01
Is this possible without changing the link text that is displayed on the screen?
This is the script that I use to send the text to the input field.
CODE
$(function () {
$('#rightbox a').on('focus', function () {
var text = $('#moviename');
text.val($(this).text());
var fileName =$(this).text();
fileName = fileName.replace(/\.[^/.]+$/, "");
text.val(fileName);
$Form.click();
});
});
I'm guessing I need some regex in here, but I'm not good enough at regex yet.