Added support for chapters in metadata file
When restoring the previous selected entry also scroll to the selected entry