mirror of
				https://github.com/SoPat712/videospeed.git
				synced 2025-10-29 18:30:35 -04:00 
			
		
		
		
	fix detecting video on plex (#434)
This commit is contained in:
		| @@ -206,7 +206,6 @@ | |||||||
|       var fragment = document.createDocumentFragment(); |       var fragment = document.createDocumentFragment(); | ||||||
|       fragment.appendChild(wrapper); |       fragment.appendChild(wrapper); | ||||||
|  |  | ||||||
|       this.video.classList.add('vsc-initialized'); |  | ||||||
|       this.video.dataset['vscid'] = this.id; |       this.video.dataset['vscid'] = this.id; | ||||||
|  |  | ||||||
|       switch (true) { |       switch (true) { | ||||||
| @@ -342,13 +341,12 @@ | |||||||
|           if (added) { |           if (added) { | ||||||
|             new tc.videoController(node, parent); |             new tc.videoController(node, parent); | ||||||
|           } else { |           } else { | ||||||
|             if (node.classList.contains('vsc-initialized')) { |             let id = node.dataset['vscid']; | ||||||
|               let id = node.dataset['vscid']; |             if (id) { | ||||||
|               let ctrl = document.querySelector(`div[data-vscid="${id}"]`) |               let ctrl = document.querySelector(`div[data-vscid="${id}"]`) | ||||||
|               if (ctrl) { |               if (ctrl) { | ||||||
|                 ctrl.remove(); |                 ctrl.remove(); | ||||||
|               } |               } | ||||||
|               node.classList.remove('vsc-initialized'); |  | ||||||
|               delete node.dataset['vscid']; |               delete node.dataset['vscid']; | ||||||
|             } |             } | ||||||
|           } |           } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 fent
					fent