Repository: yt-dlp/yt-dlp
File: yt_dlp/extractor/dropout.py (Python)

Code before:
        user_has_subscription = self._html_search_regex(r'user_has_subscription: ["\'](.+?)["\']',
                                                        response, 'success')
        if str(user_has_subscription).lower() == 'true':
            return response
        else:
            self._logout()
            self.raise_login_required('Incorrect username/password, or account is not subscribed')

    def _logout(self):
        self._download_webpage(self._LOGOUT_URL, self.display_id, note='Logging out')

    def _real_extract(self, url):
        self.display_id = self._match_id(url)

        self._login()

        # Get webpage and embed_url, and log out
        webpage = self._download_webpage(url, self.display_id, note='Downloading video webpage')
        self._logout()
        embed_url = self._html_search_regex(r'embed_url: ["\'](.+?)["\']', webpage, 'url')

        # More metadata
        id = self._html_search_regex(r'embed.vhx.tv/videos/(.+?)\?', embed_url, 'id')
        title = self._html_search_regex(r'<title>(.+?)</title>', webpage, 'title')
        if title:
            title = title.split(' - ')[0]
        description = self._html_search_regex(
            r'<meta name=["\']description["\'] content=["\'](.+?)["\']',
            webpage, 'description')
        thumbnail = self._html_search_regex(r'<meta property="og:image" content="(.+?)\?',
                                            webpage, 'thumbnail')
        release_date = self._html_search_regex(
            r'data-meta-field-name=["\']release_dates["\'] data-meta-field-value=["\'](.+?)["\']',
            webpage, 'release_date')
        if release_date:
            release_date = release_date.replace('-', '')

        return {
            '_type': 'url_transparent',
            'ie_key': VHXEmbedIE.ie_key(),
            'url': embed_url,
            'id': id,
            'display_id': self.display_id,
            'title': title,
            'description': description,
            'thumbnail': thumbnail,
            'release_date': release_date,
        }


Review comment (suggestion):
```suggestion
        title = self._html_search_regex(r'<title>(.+?)</title>', webpage, 'title').split(' - ')[0]
```
since title is mandatory.

But are you sure the actual title can never have a ` - ` in it? `remove_end` may be more appropriate

Code after:
                'thumbnail': 'https://vhx.imgix.net/chuncensoredstaging/assets/4421ed0d-f630-4c88-9004-5251b2b8adfa.jpg',
                'series': 'Dimension 20: Fantasy High',
                'season_number': 1,
                'season': 'Season 1',
                'episode_number': 1,
                'episode': 'The Beginning Begins',
                'duration': 6838,
                'uploader_id': 'user80538407',
                'uploader_url': 'https://vimeo.com/user80538407',
                'uploader': 'OTT Videos'
            },
            'expected_warnings': ['Ignoring subtitle tracks found in the HLS manifest']
        },
        {
            'url': 'https://www.dropout.tv/videos/misfits-magic-holiday-special',
            'note': 'Episode not in a series',
            'md5': 'c30fa18999c5880d156339f13c953a26',
            'info_dict': {
                'id': '1915774',
                'display_id': 'misfits-magic-holiday-special',
                'ext': 'mp4',
                'title': 'Misfits & Magic Holiday Special',
                'description': 'The magical misfits spend Christmas break at Gowpenny, with an unwelcome visitor.',
                'release_date': '20211215',
                'thumbnail': 'https://vhx.imgix.net/chuncensoredstaging/assets/d91ea8a6-b250-42ed-907e-b30fb1c65176-8e24b8e5.jpg',
                'duration': 11698,
                'uploader_id': 'user80538407',
                'uploader_url': 'https://vimeo.com/user80538407',
                'uploader': 'OTT Videos'
            },
            'expected_warnings': ['Ignoring subtitle tracks found in the HLS manifest']
        }
    ]

    def _get_authenticity_token(self, display_id):
        signin_page = self._download_webpage(
            self._LOGIN_URL, display_id, note='Getting authenticity token')
        return self._html_search_regex(
            r'name=["\']authenticity_token["\'] value=["\'](.+?)["\']',
            signin_page, 'authenticity_token')

    def _login(self, display_id):
        username, password = self._get_login_info()
        if not (username and password):
            self.raise_login_required(method='password')

        response = self._download_webpage(
            self._LOGIN_URL, display_id, note='Logging in', data=urlencode_postdata({
                'email': username,
                'password': password,
                'authenticity_token': self._get_authenticity_token(display_id),