Advertisement
Logikos

On screen Display - shows ' for apostrophe

Feb 17th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. on *:start: vlcinfo
  2. alias vlcinfo {
  3. sockopen $+(vlcinfo,$ticks,$rand(a,z)) 192.168.1.30 8080
  4. }
  5. on *:sockopen:vlcinfo*: {
  6. if $sockerr > 0 { echo -at vlc not running | sockclose vlc }
  7. sockwrite -n $sockname GET /requests/status.xml HTTP/1.1
  8. sockwrite -n $sockname Host: localhost
  9. sockwrite -n $sockname Connection: Keep-Alive
  10. sockwrite -n $sockname $crlf
  11. }
  12. on *:sockread:vlcinfo*: {
  13. if $sockerr > 0 { echo -a error | sockclose vlc }
  14. sockread %vlcy
  15.  
  16. if (<time>* iswm %vlcy) {
  17. set %vlc.time $duration($nohtml(%vlcy),3)
  18. }
  19. if (<length>* iswm %vlcy) {
  20. set %vlc.length $duration($nohtml(%vlcy),3)
  21. }
  22. if (*name='filename'>* iswm %vlcy) {
  23. if ($regex(%vlcy,<info name='filename'>\s*\K(.+?)(?=\s*<\/info>)) == 1) {
  24. set %vlcann11 $regml(1)
  25. %vlcann11 = $gettok(%vlcann11,$+(1-,$calc($numtok(%vlcann11,46) -1)),46)
  26.  
  27.  
  28.  
  29. set %vlcann69 %vlcann11 $+($chr(40),%vlc.time,$chr(41),|,$chr(40),%vlc.length,$chr(41))
  30.  
  31.  
  32. write -c \\GATEWAY\Users\Debra\Desktop\videoinfo.txt %vlcann69
  33. $iif(!$window(@VLC),window -evn @VLC,noop)
  34. echo @VLC Wrote %vlcann69 to videoinfo at $asctime $date
  35. .timervlcinfo -m 1 5000 vlcinfo
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement