refactoring: Modify metalink parser