Skip to content

Commit

Permalink
openload (download): a better way to locate a javascript code
Browse files Browse the repository at this point in the history
It may be located somewhere else on a page for different file types.
Fixes mcrapet#92.
  • Loading branch information
Raziel-23 committed Jun 9, 2016
1 parent c840a1c commit 154ce55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ openload_download() {
wait $(($WAIT)) seconds || return

# Obfuscated code with utf-8 variable names
JS=$(grep_script_by_order "$PAGE" 12) || return
JS=$(parse 'id="realdl"' '^\(.*\)$' 1 <<< "$PAGE") || return
JS=${JS#<script type=\"text/javascript\">}
JS=${JS%</script>}

Expand Down

0 comments on commit 154ce55

Please sign in to comment.