Jump to content

Posters/Primary Images not downloading


Recommended Posts

Posted

So when Mediabrowser first ran, it didn't have privileges to store images where it wanted to, so it instead extracted stills out of every file and stored those as the primary image. Now that I've gone and fixed that issue, it seems uninterested in ever attempting to find primary images ever again unless I delete the auto-extracted one manually. Is this something I can resolve without manually editing the information of hundreds of files?

Posted (edited)

Wrote some ridiculous JS to do it for me with overly safe timeouts. If someone ever runs into this and uses this, make sure you're looking at the images tab of a video before you start it and leave the tab visible/active.

 

Time to let it run, night ;)

$('#85547297814bf9f2898d54690b92c335 > ul > li').each(function(index) {
	var that = this;
	window.setTimeout(function() {
		$('a', that).click();
		window.setTimeout(function() {
			if ($('#images > div:first-child p').eq(0).text() == 'Primary') {
				EditItemImagesPage.deleteImage('Primary', null);
				window.setTimeout(function() {
					$('.confirmFlyout')[0].confirm = true;
					$('.confirmFlyout').popup('close');
				}, 750);
			}
		}, 750);
	}, 3000 * index);
});
Edited by tegeril

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...