Youtube limit queue

Please help howe to limit youtube bandwith in my mikrotik !!

have tried with the script

/ system scheduler
\n:if \e=“youtobe” on-event=“:foreach i in=[/ip dns cache find] do={
\n:log \find [/ip dns cache get $i name] "youtube"] > 0) do={
info ("youtube: " . [/ip dns cache get $i name] . " (ip address " .
\n/ip firewall address-list add \ss] . ")")
address=[/ip dns cache get $i address] list=youtube
\n}” start-date=sep/12/2007 start-time=21:00:00
interval=1m comment=“” disabled=no

and

/ ip firewall mangle
add chain=prerouting action=mark-connection new-connection-mark=youtube
passthrough=yes src-address-list=youtube comment=“” disabled=no

add chain=prerouting action=mark-packet new-packet-mark=youtube passthrough=no
connection-mark=youtube comment=“” disabled=no

and

/ queue simple
add name=“youtube” dst-address=0.0.0.0/0 interface=all parent=none
packet-marks=youtube direction=both priority=8
queue=PCQ_download/PCQ_download limit-at=0/0 max-limit=20000/20000
total-queue=default-small time=0s-1d,sun,mon,tue,wed,thu,fri,sat
disabled=no

but

this is error

Please Help me !!
script 2.png
script.png

Scheduler:
add on-event=" is missing after / system scheduler and probably even beginning of script.

Queue error:
Try putting youtube in quotes, example,
packet-marks=“youtube”

/ system scheduler
\n:if \e=“youtobe” on-event=":foreach i in=[/ip dns cache find] do={

try to recorrect that i had bold.

youtube or youtobe ?

lol… i’ve often wished the winbox had a spellcheck :slight_smile:

can anyone find out the error

youtube.JPG