o algoritmo está a funcionar muito bem no youtube