mirror of
				https://github.com/chris124567/hulu
				synced 2025-10-31 03:35:33 +00:00 
			
		
		
		
	fix bug in random UUID generation for Hulu /playlist endpoint
This commit is contained in:
		
							parent
							
								
									ff25377cf1
								
							
						
					
					
						commit
						0bf67413d4
					
				| @ -167,7 +167,7 @@ func (c Client) Playlist(sessionKey int, eabID string) (p Playlist, err error) { | ||||
| 	randUUID := func() string { | ||||
| 		randChars := func(n int) (s string) { | ||||
| 			c := []byte("ABCDEF0123456789") | ||||
| 			for i := 0; i < 4; i++ { | ||||
| 			for i := 0; i < n; i++ { | ||||
| 				s += string(c[frand.Intn(len(c))]) | ||||
| 			} | ||||
| 			return | ||||
|  | ||||
| @ -5,6 +5,7 @@ import ( | ||||
| 	"time" | ||||
| ) | ||||
| 
 | ||||
| // These are constants taken from https://player.hulu.com/site/dash/308343-site-curiosity/js/app.js | ||||
| var ( | ||||
| 	deejayKey = []byte{110, 191, 200, 79, 60, 48, 66, 23, 178, 15, 217, 166, 108, 181, 149, 127} | ||||
| ) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user