def user_videos_v1(self, user_id: str, amount: int = 0) -> List[Media]:
        """
        Get a user's video by Private Mobile API

        Parameters
        ----------
        user_id: str
        amount: int, optional
            Maximum number of media to return, default is 0 (all medias)

        Returns
        -------
        List[Media]
            A list of objects of Media
        """
        amount = int(amount)
        user_id = int(user_id)
        medias = []
        next_max_id = ""
        while True:
            try:
                medias_page, next_max_id = self.user_videos_paginated_v1(
                    user_id, amount, end_cursor=next_max_id
                )
            except PrivateError as e:
                raise e
            except Exception as e:
                self.logger.exception(e)
                break
            medias.extend(medias_page)
            if not next_max_id:
                break
            if amount and len(medias) >= amount:
                break
        if amount:
            medias = medias[:amount]
        return medias

        Get a user's video by Private Mobile API

        Parameters
        ----------
        user_id: str
        amount: int, optional
            Maximum number of media to return, default is 0 (all medias)

        Returns
        -------
        List[Media]
            A list of objects of Media
        
instagrapi/mixins/media.py