implemented optimised version of YoutubeExtractor.getVideoId().

new version uses a regular expression instead of creating a HashMap and looping over them.
Needs testing before pushing to origin
This commit is contained in:
Adam Howard 2015-11-11 01:48:44 +00:00
parent 873564f2aa
commit 3411b53450
3 changed files with 23 additions and 4 deletions

View file

@ -67,8 +67,7 @@ public class VideoItemDetailActivity extends AppCompatActivity {
arguments.putInt(VideoItemDetailFragment.STREAMING_SERVICE, i);
try {
currentStreamingService = i;
extractor = ServiceList.getService(i)
.getExtractorInstance();
extractor = ServiceList.getService(i).getExtractorInstance();
} catch (Exception e) {
e.printStackTrace();
}