Fixed scene tile detail word wrap. Fixed Score posters.
This commit is contained in:
		
							parent
							
								
									50c5f921f5
								
							
						
					
					
						commit
						d7974f057f
					
				| 
						 | 
				
			
			@ -73,6 +73,7 @@ export default {
 | 
			
		|||
    width: 100%;
 | 
			
		||||
    display: flex;
 | 
			
		||||
    justify-content: space-between;
 | 
			
		||||
	white-space: nowrap;
 | 
			
		||||
    background: var(--profile);
 | 
			
		||||
    font-size: 0;
 | 
			
		||||
	font-weight: bold;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -65,7 +65,7 @@ function scrapeAll(html, site) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
async function scrapeScene(html, url, site) {
 | 
			
		||||
	const { qu } = ex(html, '#videos-page, #content');
 | 
			
		||||
	const { qu } = ex(html, '#videos-page, #content section');
 | 
			
		||||
	const release = {};
 | 
			
		||||
 | 
			
		||||
	[release.entryId] = new URL(url).pathname.split('/').slice(-2);
 | 
			
		||||
| 
						 | 
				
			
			@ -95,7 +95,7 @@ async function scrapeScene(html, url, site) {
 | 
			
		|||
	const durationEl = qu.all('value').find(el => /\d{1,3}:\d{2}/.test(el.textContent));
 | 
			
		||||
	release.duration = qu.dur(durationEl);
 | 
			
		||||
 | 
			
		||||
	release.poster = qu.poster('video') || qu.img('.flowplayer img') || qu.img('img'); // _800.jpg is larger than _xl.jpg in landscape
 | 
			
		||||
	release.poster = qu.poster('video') || qu.img('.flowplayer img') || html.match(/posterImage: '(.*\.jpg)'/)?.[1] || null; // _800.jpg is larger than _xl.jpg in landscape
 | 
			
		||||
	const photosUrl = qu.url('.stat a[href*=photos]');
 | 
			
		||||
 | 
			
		||||
	if (photosUrl) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue